Home‎ > ‎Server‎ > ‎App Engine‎ > ‎

Owned Collections


I like using owned collections on app engine.  

An AppEngine Owned Collection Key might look like: PeopleData(8)/TodoData(23)

JDO Owned Collection Annotation

  @Persistent(defaultFetchGroup = "true", dependentElement = "true")
 
private List<TodoData> todos;

JPA Owned Collection Annotation

  @OneToMany(fetch = FetchType.EAGER, cascade = {CascadeType.ALL}, targetEntity = TodoData.class)
 
private List<TodoData> todos;



Comments