This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic understanding of JPQL and HQL

 
Harish Vembu
Ranch Hand
Posts: 33
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



Dear all,

I have a basic question regarding HQL and JPQL.

I might be using EJB 3.x, JPA and Hibernate for next project.

I ran some samples with EJB 3.x JPA with Hibenate as ORM framework.

My question is whether we have to use JPQL or HQL or both in entity classes and hibernate files?. If both are needed why both?

Is that something JPQL can do that HQL cannot do and vice versa. Is one better over other?

Thanks in Advance and Appreciate your inputs.


Best Regards


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic