Hi All JDO Experts,
I am trying to write JDO query to query on List property but didnt find in
documentaion on google app site.
Class InterestedParty
{
Key id;
List<Key> parties;
}
So basically now i want to query all IntrestedParties where parties list
contain User(1) or User(5) etc.
So i expect query should be something like this
Select InterestedParty from InterestedParty where parties
contain(use1Key,user2Key ...etc)
Is it right?
Can i get exact syntax from some where.
Example
Lets say i have 3 ENtity of this lcass saved in db will follwoing data
A
InterestedParty{
id(1)
parties(User(1),User(4),User(6))
}
B
InterestedParty{
id(2)
parties(User(1))
}
C
InterestedParty{
id(3)
parties(User(4))
}
So if i query for parties User(1) and User(4), then all the three records
will be returned,
if i query for parties User(1) then record A and B will be returned..
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.