• 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.
 
Liar, liar, pants on fire! refreshing plug:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!