-->
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: where clause for <set>
PostPosted: Thu Jul 15, 2004 3:59 pm 
Beginner
Beginner

Joined: Fri Mar 05, 2004 6:33 pm
Posts: 29
Location: Vancouver, BC, Canada
Say Class A has a getB() method that returns a set of B objects.

in the where clause of this set, I can add filters to restrict the Bs that get returned. is there a way to reference the A table in the where clause, to add additional join conditions?

for instance something like

<set name="b"
where="a.x = b.y and b.deleted = false">

The problem is that a is not part of the query..

Is it possible to accomplish the same thing some other way?

Thanks,

Calin


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.