File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Hibernate relations Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate relations" Watch "Hibernate relations" New topic
Author

Hibernate relations

venkatakrishna nukala
Greenhorn

Joined: Jun 17, 2008
Posts: 1
Hi,

I want query child object while loading,

here is the query i am using :




but applicantperson is having 24 records, and child gpalist has 2 records with one verified = 1 and the second is having verified =0

Note: there is one to many relation between ApplicantPerson and Gpa


But the output of the above query is 30 records and gpalist is getting 2 records.

I need out put with 24 records in parent and child gpalist with one record verified =1
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Hibernate relations
 
Similar Threads
How to insert a new child record only. One to Many Relation.
Hibernate one-to-many relationship insert
How does Hibernate get child objects
Hibernate eager fetching issue
Select all row values using JPA