This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate relations

 
venkatakrishna nukala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic