Hi,

Consider an example where class A has a "child" property of class B,
and B has a property "title", as follows:

@PersistenceCapable
@Version(... field-name="version")
Class A {
    protected long version;

    @Persistent
    protected B child;

    ....
}

@PersistenceCapable
Class B {
    @Persistent
    protected String title;

    public void setTitle(String title) {...}

    ....
}

tx.begin();
// get an instance of Class A
A parent = ...;
parent.child.setTitle("foo");
pm.makePersistent(parent);
tx.commit();


Question1: Will the version of "parent" be increased in this case
(when all its property values are not changed directly)?

Question2: Does appengine support the VersionStrategy.DATE_TIME
attribute in @Version?

Question3: Given that A is annotated with @Version and the version
field is protected, should a subclass of A needs to be annotated with
@Version too in order to have the version managed by JDO/JPA?

Sorry in advance if these questions appear somewhere else.
-- 
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.


Reply via email to