-->
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: filter retrieved associate list
PostPosted: Sat Sep 23, 2006 8:44 am 
Newbie

Joined: Fri May 05, 2006 4:54 am
Posts: 14
Hi!

Like the query says: Get contacts in the group 7 where contacts firstname = 'tony'

I try this:
select c from Contact c INNER JOIN Groups g on g.contacts=c and c.FirstName = 'tony' and groups.GroupId = 7

and get the error:
outer or full join must be followed by path expression

There must be an simple way to do this.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 23, 2006 11:14 am 
Newbie

Joined: Fri May 05, 2006 4:54 am
Posts: 14
This worked:

select c from Groups g INNER JOIN g.Contacts c where c.FirstName = 'Tony' and g.groupid = 7

Toni


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.