Max,
Thanks for your reply !!
#1 we always use prepared statements, but the sql-query is not directly cache by hibernate
----- Does that mean <query/> is more performance optimized than <sql-query/>?
#2 yes, otherwise how should hibernate be able to see what the id is of your object ? (you can in H3 use scalar queries which doesnt have this requirement, but then cant return user objects)
----- That sounds good. I dont have problem selecting id fields. Just wanted to confirm if thats the right direction.
#3 Have no idea why you should need to run the instrument ant task, how did you get that idea ?
----- This is for handling lazy properties. I read abt Instrument task at
http://www.hibernate.org/hib_docs/v3/re ... properties
http://jira.jboss.com/jira/browse/EJBTHREE-217