Which of these are the best for performance in terms of data retrieval..
HQL in Java code
Native SQL in java code
Named query in hbm file
posted 7 years ago
HQL, Criteria and NamedQueries are trandformed into PreparedStatements, so there cannot be any difference (for the same statement). Native SQL might be faster, because you can do some handmade "magic" Hibernate cannot do.