-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: object is in return list more than once
PostPosted: Wed Jul 12, 2006 2:30 am 
Newbie

Joined: Tue Jul 11, 2006 4:22 pm
Posts: 9
Hi i have next query :

select doctor
from Doctor doctor
left join fetch doctor.contactdoctorSet c
where doctor.specialization in (:specialization)

when doctor have more than one contact, he is in return list just as many times as contacts occurences.
I thougth that join fetch only initialize collection and didn't really create join.

This is problem for me because when i want to display 10 doctors on page and two of them have two contacts i have only 7 real doctors in my result.

plz help Thanks ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.