What is the difference between jpql and hql?



What is the difference between jpql and hql?..

Answer / Nishant

Hibernate Query Language (HQL) is a SQL-like query language for Hibernate, while Java Persistence Query Language (JPQL) is the standard query language defined by the Java Persistence API (JPA). The main difference between them is that JPQL is more generic and can be used across different implementations of JPA, whereas HQL is specific to Hibernate.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How to implement one to many relationships with annotation?

1 Answers  


What is commit in hibernate?

1 Answers  


What is difference between save and merge in hibernate?

1 Answers  


What is Hibernate Proxy and how it helps in lazy loading?

1 Answers  


Why would you use an orm?

1 Answers  


What is spring hibernate integration?

1 Answers  


What is sessionfactory?

1 Answers  


What are derived properties?

1 Answers  


Is orm slow?

1 Answers  


What is the role of session interface in hibernate?

1 Answers  


Is sessionfactory singleton in hibernate?

1 Answers  


Can we use hibernate with cassandra?

1 Answers  


Categories