trying to run a named query
- by dora
hi,
I’m doing the following:
@Entity
@SqlResultSetMapping(name="getxxxx",
entities=@EntityResult(xxxx.class,
fields = {
@FieldResult(name="x1", column = "x1"),
@FieldResult(name="x2", column = "x2")}))
@NamedNativeQuery(name=" getxxxx ",
query="select x1, x2 from yyyy",
…