Hi, I have a really simple domain structure, like this:
@PersistenceCapable
Account implements Serializable {
@Persistent
@PrimaryKey
Key id;
@Persistent
@Embedded
AccountDetails details;
}
@PersistenceCapable
@EmbeddedOnly
AccountDetails implements Serializable {
@Persistent
String name;
}
I can successfully save a new Account. However, when I retrieve it, either
doing a
- (PersistenceManagerFactory).getObjectById
- JDO query
the object is found, but that property is *always *null. Is something
missing in the code above? I have also noticed that
@Persistent(serialized="true") fields in embedded classes seem to cause an
exception while saving the *Account*. (is this a known issue or I'm doing
something wrong again?).
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/BD_6D5BPe10J.
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.