-->
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: Collections problem
PostPosted: Mon Jul 24, 2006 11:40 am 
Newbie

Joined: Sun Jun 25, 2006 9:27 pm
Posts: 18
Hi,
I have some problems with a select query.

I have the following classes

Person {

Set<Address> addresses;

}

Addresses {
Set<AccessRight> accessRight;

}

AccessRight {
Set<Person> members;
}

now I have a query that says:
"select person.addresses from Person person where :user in (person.addresses.accessRight.members)"...

However I get the output "could not resolve property: members of my.core.Addresses" - however, "members" is as you can see actually in accessRight...

What's wrong with my syntax? I might have to use MySQL 4, so I might not have the option to go for subqueries...
Any clues?

Thanks,
Joey


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.