I have a one-to-many relationship, mapped as:
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName="datanucleus", key="gae.encoded-pk",
value="true")
private String key;
@Persistent
private String name;
@Persistent(nullValue= NullValue.NONE)
private Group parent;
And in many side:
@Persistent(mappedBy= "parent")
private List<Student> children;
I want to make the group property optional, but GAE refuses to save
any student entity which does not have group assigned to them. Do you
have any idea how I can fix it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---