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

Hibernate criteria getting complex.

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to hibernate and i need to apply below SQL criteria in Hibernate Criteria.

SQL


Hibernate


Is this the correct way of applying it in hibernate or i am just making it complex ?
 
Piyush Mangal
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks fine to me. You can also use HQL which would be easier for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic