RelationStrategies.mapRelationToUnmappedPC(field, field.getName(),
adapt);
field.setUseClassCriteria(criteria);
field.mapPrimaryKey(adapt);
PrimaryKey pk = field.getTable().getPrimaryKey();
if (field.isPrimaryKey()) {
Column[] cols = field.getColumns();
if (pk != null && (adapt || pk.isLogical()))
for (int i = 0; i < cols.length; i++)
pk.addColumn(cols[i]);
for (int i = 0; i < cols.length; i++)
field.getDefiningMapping().setJoinable(cols[i], this);
}
// map constraints after pk so we don't re-index / re-unique pk col