Hello,
I am using Hibernate 3.2 + Annotations.
I have annotated a class, and wish to be able to tell hibernate to give me back a list of instances of that annotated class according to this SQL query.
Now, if I use @NamedNativeQuery, no problem.
Doing this works:
Query query =
session.getNamedQuery(Config.INSTANCE.getQuoteParamsQuery());
List<QuoteParams> params = query.list();
My SQL query is in a config somewhere...
How can I tell Hibernate to give me back a list of instances, and not a ResulSet pls?
Thx,
Theirry
|