Re: [appengine-java] OneToOne relationship with java.lang.Long ids

2010-10-11 Thread andy stevko
The ID for the owned child User instances has to be a Key or String type because the it contains both the reference to the parent(s) and the unique id of the object. A Long alone will not contain enough information to navigate the object model to it. I usually stick with String ids for all my type

[appengine-java] OneToOne relationship with java.lang.Long ids

2010-10-11 Thread Rick Curtis
Hello all! I am new to GAE and have a pretty simple domain model that I'm trying to persist. I am creating an Event(with a generated ID) and a User(with a pre-defined ID) which is hosting the event. This is a one to one relationship owned by the Event(@See below for code snippets). Upon commiting