• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg : Criteria having where clause?

 
Barry Van
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

Criteria having where clause? if have give me example hibernate query using criteria where clause?
 
P Crasta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude this is what you need.. in criteria we add restrictions, its like the where clause




hibernate docs is the best first place to look at.. this is where i picked this example from

http://www.hibernate.org/hib_docs/reference/en/html/querycriteria-narrowing.html
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!