I noticed, at least I couldn't see anything different, that if I omit
this annotation in a field, the behavior of the Persistence Manager is
the same when it comes to make an entity persistent. I'm talking about
fields which type are marked as @EmbeddedOnly.

@PersistenceCapable(detachable = "true")
@EmbeddedOnly
public class Child {

        …

}

@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = "true")
public class Parent {

        @Persistent
        @Embedded
        private Child   child1;

        @Persistent
        private Child   child2;

}

Am I missing something here or there would be no difference in
treatment between child1 and child2?

Would it be better to use @PersistenceCapable(embeddedOnly = "true")
in the Child instead of @EmbeddedOnly?

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to