File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "comparing two table - hibernate criteria" Watch "comparing two table - hibernate criteria" New topic

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:
subject: comparing two table - hibernate criteria
It's not a secret anymore!