Javatpoint Logo

What The difference between criteria and hql query and sql query?

By: ah.mak*** On: Thu Jul 09 02:32:30 IST 2015     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
What The difference between criteria and hql query and sql query?
which is the best performance
Up0Down
hibernate  x  70Tags

 
HQL is suitable for executing Static Queries, where as Criteria is suitable for executing Dynamic Queries.

HQL is to perform both select and non-select operations on the data,
Criteria is only for selecting the data, we cannot perform non-select operations using criteria.
Image Created0Down

By: [email protected] On: Sat Jun 17 18:41:50 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No