*/
public class JDOVersionTest extends JDOTestCase {
public void testTimestampVersion() {
pm.currentTransaction().begin();
TimestampVersionJDO tv = new TimestampVersionJDO();
tv.setStr1("First Value");
pm.makePersistent(tv);
pm.currentTransaction().commit();
Object firstVersion = JDOHelper.getVersion(tv);
Assert.assertTrue(firstVersion instanceof Timestamp);
pm.currentTransaction().begin();
tv.setStr1("Second Value");
pm.currentTransaction().commit();
Object secondVersion = JDOHelper.getVersion(tv);
Assert.assertTrue(secondVersion instanceof Timestamp);
long firstMillis = ((Timestamp)firstVersion).getTime();
long secondMillis = ((Timestamp)secondVersion).getTime();