while (!(md instanceof AbstractClassMetaData))
{
if (md == null)
{
// ColumnMetaData for existing column has no parent class somehow!
throw new NucleusUserException(LOCALISER.msg("057043",
name.getIdentifierName(), getDatastoreIdentifierFullyQualified(), colmd.toString()));
}
md = md.getParent();
}
// Find the MetaData for the column to be added
MetaData dupMd = colmd.getParent();
while (!(dupMd instanceof AbstractClassMetaData))
{
dupMd = dupMd.getParent();
if (dupMd == null)
{
// ColumnMetaData for required column has no parent class somehow!
throw new NucleusUserException(LOCALISER.msg("057044",
name.getIdentifierName(), getDatastoreIdentifierFullyQualified(), colmd.toString()));
}
}
boolean reuseColumns = storeMgr.getBooleanProperty("datanucleus.rdbms.allowColumnReuse");