if (versionMetaData != null && versionMetaData.getFieldName() == null)
{
if (versionMetaData.getVersionStrategy() == VersionStrategy.NONE)
{
// No optimistic locking but the idiot wants a column for that :-)
versionMapping = new VersionMapping(dba, this, dba.getMapping(Long.class, storeMgr));
}
else if (versionMetaData.getVersionStrategy() == VersionStrategy.VERSION_NUMBER)
{
versionMapping = new VersionMapping(dba, this, dba.getMapping(Long.class, storeMgr));
}
else if (versionMetaData.getVersionStrategy() == VersionStrategy.DATE_TIME)
{
versionMapping = new VersionMapping(dba, this, dba.getMapping(Timestamp.class, storeMgr));
}
}
// Add Discriminator where specified in MetaData
DiscriminatorMetaData dismd = cmd.getDiscriminatorMetaDataForTable();