Alternative approaches
An alternative way to maintain a timestamp is to use JDO’s @Version annotation.
With this approach, it is the JDO/DataNucleus that maintains the version, rather than the framework’s TimestampService.
For example:
@javax.jdo.annotations.Version(
strategy=VersionStrategy.DATE_TIME,
column="version")
public class Customer {
...
public java.sql.Timestamp getVersionSequence() {
return (java.sql.Timestamp) JDOHelper.getVersion(this);
}
}