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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads