-->
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.  [ 2 posts ] 
Author Message
 Post subject: Fetch Join Frage
PostPosted: Fri Feb 17, 2006 9:38 am 
Newbie

Joined: Wed Nov 16, 2005 10:58 am
Posts: 10
Hibernate version:
3

Hallo,

ich habe folgendes Problem:

ich möchte über zwei relationen fetchen.

Kunde -> Niederlassung -> Ansprechpartner

das klppt so ganz gut:

select kd from Kunde as kd left join fetch kd.niederlassung left join fetch kd.niederlassung.ansprechpartner

sobald ich aber einen Kunden suche der keine Niederlassung hat (und somit auch keine Ansprechpartner) erhalte ich so keine ergebnisse.

was mache ich falsch?

Gruss


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 7:16 am 
Beginner
Beginner

Joined: Tue Jul 19, 2005 5:08 am
Posts: 26
Location: Germany
probier mal anstatt "left join" "right outer join" dann müsstest du auch kunden kriegen, die keine relationen haben.


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

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.