-->
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: HQL implicit join as outer join?
PostPosted: Wed Mar 24, 2010 6:00 am 
Regular
Regular

Joined: Thu Dec 10, 2009 10:53 am
Posts: 50
AFAIK uses inner joins by default for implicit joins. Is there a way to tune this behavior to use outer joins instead?

In particular I would like this query to return entities that don't have a particular association when there's a not equal condition, like so:

Code:
from Cat cat where cat.kittens.name != "Lucky"


Because I'll have to generate the HQL at runtime and I cannot use Criteria, I'd like to use implicit joins.

Cheers,
Tim


Top
 Profile  
 
 Post subject: Re: HQL implicit join as outer join?
PostPosted: Fri Aug 30, 2013 8:47 am 
Newbie

Joined: Thu Mar 12, 2009 2:49 pm
Posts: 9
Location: Vienna
I have the exact same problem, though It seems the answer is no, this feature does not exist (at least I couldn't find anything)
I resolved the problem by generating explicit outer joins and not using implicit joins for optional relations.


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.