On Fri, Nov 5, 2010 at 12:14 PM, Ian Murdock <[email protected]> wrote:
> �...@persistencecapable
> public class Child {
> �...@persistent
> private Parent parent;
> �...@persistent
> private String field;
>
> public Child(String field) {
> this.field = field;
> }
>
> public Parent getParent() {
> return parent;
> }
>
> public void setParent(Parent parent) {
> this.parent = parent;
> }
> }
Cut and paste error.. Child has a key too:
@PersistenceCapable
public class Child() {
@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
private String key;
// ...
}
-ian
--
Ian Murdock
http://ianmurdock.com/
"Don't look back--something might be gaining on you." --Satchel Paige
--
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.