-->
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: Question to the Query language
PostPosted: Tue Jul 25, 2006 6:56 pm 
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
Code:

Person {

Set<Address> addresses;

}

Addresses {
Set<AccessRight> accessRight;

}

AccessRight {
Set<Person> members;
}



I have the following query:[b]
"select person.addresses from Person person where :user in (person.addresses.accessRight.members)"...[/b]

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[/b]


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.