Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
Help required on hibernate QBE
posted 11 years ago
I have a Set of DetailsObject in MasterObject.
MasterObject maps to a "Master" table and DetailsObject maps to a "Details" table which have Master.ID as foreign key.
Now I want to query whether MasterObject exist in database or not. But it should compare all the DetailsObject from the Set also in the detail table.
I tried like this...
List list = session.createCriteria(MasterObject.class)
this actually queries only for masterObject and didn't compare the DetailsObject which is there as a Set (Collection) ???
is there any way so that all the objects of DetailsObject from Set also gets compared ???
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
Compare Two Column
Sorting ArrayList of Hashtables
nested java maps
hashCode/equals stratgy for mutable object
hibernate cascading question