Re: [appengine-java] Cannot have a java.lang.Long primary key and be a child object

2010-01-15 Thread Max Ross (Google)
Hi Carl, You can use a string-encoded key on the child object to avoid a dependency on proprietary google classes. More info here: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys (search for Key as Encoded String) Hope this helps, Max On Fri, Jan 1

[appengine-java] Cannot have a java.lang.Long primary key and be a child object

2010-01-15 Thread Carl Ballantyne
Hi All, I have two classes, a Parent and a Child. (See below for code) The Parent class contains a reference to a Child instance. However when I try and save a Parent instance I get the following error: Cannot have a java.lang.Long primary key and be a child object. The error is clear enough and