-->
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 join with condition, "with" statement
PostPosted: Tue May 15, 2007 4:10 pm 
Newbie

Joined: Tue May 15, 2007 3:51 pm
Posts: 1
Location: Austria
Hello,
I've found an example for a HQL-Select statement using "with" for additional conditions on the join-element (hibernate 3.1?).

This would be very useful, because I'd like to get some data like this:

select A.someprop, T1.someprop, T2.someprop
from A
left join A.T as T1 with T1.propx = "A"
left join A.T as T2 with T2.propx = "B"
where (T1.propx = "A" or T2.propx = "B")

to get the result (for example):

A.someprop | T1.someprop | T2.someprop
---------------------------------------------------
1 | null | 3
2 | 3 | 5
3 | 8 | null
4 | 12 | 26

Have you any information, if this feature is planned - I didn't found this in the issue list or can I solve this in an unusual manner.

Thanks for your information, Thomas.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 16, 2007 4:53 pm 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
It's already logged: http://jira.nhibernate.org/browse/NH-514

Please go to JIRA and vote for it ...


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.