/**
* @ejb.interface-method
*/
public void testExplicitVersionUpdateOnSync(String jndiName, Integer id) throws Exception {
log.debug("testExplicitVersionUpdateOnSync> begin");
CmpEntityLocal entity = getCmpEntityHome(jndiName).findById(id);
if (entity.getVersionField().longValue() != 1)
throw new Exception("entity.getVersionField().longValue() != 1");
entity.setStringGroup1("FIRST UPDATE");
entity = getCmpEntityHome(jndiName).findById(id);
if (entity.getVersionField().longValue() != 2)
throw new Exception("entity.getVersionField().longValue() != 2");
entity.setStringGroup1("SECOND UPDATE");
log.debug("testExplicitVersionUpdateOnSync> done");
}