It's not a secret anymore!*
The moose likes Object Relational Mapping and the fly likes comparing two table - hibernate criteria Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "comparing two table - hibernate criteria" Watch "comparing two table - hibernate criteria" New topic
Author

comparing two table - hibernate criteria

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi all,

i have two tables A and B, now i need to compare two tables i.e. (select id form A) - (select id from B)
i can do this with sql query like

but how can i achieve the same with hibernate criteria
any help would be appreciated.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comparing two table - hibernate criteria