I have two value objects, Calendar and Event, which are persistent. A calendar has a property in the event list with a one-to-many relationship. The calendar is the parent of Events, as shown below.
@Persistent
@Element(dependent = "true")
private List<Event> events;
Now I would like to receive a request through a JDO request, Events corresponding to the calendar, based on the key of the Calendar object. I use encodedKey for both classes.
I want to run a query in an Event entity, and not just get the entire Calendar object, because I want to be able to retrieve only a set of events for pagination purposes.
I tried to do this in any way possible, could not figure out how to request the parent key.
Any help would be appreciated.
source
share