-->
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: restricting a HQL-join with keyword "with" in NHib
PostPosted: Wed Mar 25, 2009 6:45 am 
Newbie

Joined: Wed Mar 25, 2009 6:37 am
Posts: 1
I found the following section in the Hibernate documentation:

" You may supply extra join conditions using the HQL with keyword.

from Cat as cat
left join cat.kittens as kitten
with kitten.bodyWeight > 10.0 "

If I try restricting a HQL left join like this in NHibernate I get an error "unexpected token: with [...]".

Are there plans to add this keyword to NHibernate's HQL or is there a way to accomplish the same result without the "with" keyword?

(I don't want to restrict the joined tables, but join with a subset of the rows of the second table.)


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.