-->
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: trouble creating a query
PostPosted: Tue Jul 06, 2004 1:01 pm 
Newbie

Joined: Tue Jul 06, 2004 12:39 pm
Posts: 5
Hi,

I'm having trouble trying to build a query that brings all the objects "A" which have a many-to-one property (holds object "B"), where "B" is not associated to any object "C" (which has a many-to-many Set property of Objects "B").

Class A
id
many-to-one class="B"

class B
id
...

class C
id
Set table="CB"
many-to-many class="B"


In SQL I used to do something like
select A.*
from A left join CB on CB.b_id = A.b_id
where CB.b_id is null;

Does anybody have an idea?
Actually, I'm having trouble trying to join an object with a Set property ( many-to-many association) of another object.

Thank you.

_________________
Luis Fernando Kauer


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.