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: HQL - Change order of outer joins
PostPosted: Tue Jul 11, 2006 4:42 am 
Beginner
Beginner

Joined: Wed Apr 26, 2006 4:12 am
Posts: 29
Can you do the equivalent of this in SQL Server using HQL:

SELECT field1
FROM Table1 INNER JOIN Table2 ON (Table1.field1 = Table2.field2)
INNER JOIN (Table3 RIGHT JOIN Table4 ON Table3.field1 = Table4.field1)
ON Table1.field1 = Table2.field2

In HQL, there doesn't seem to be a way of changing the precedence of outer joins as you can in the above query.

Please correct me if I'm wrong!!


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.