if (entityType == null) { // embeddable
column = new AmberColumn(null, name, amberType);
}
else if (columnAnn != null && ! columnAnn.table().equals("")) {
String tableName = columnAnn.table();
AmberTable table;
table = entityType.getSecondaryTable(tableName);
if (table == null)
throw error(field, L.l("{0} @Column(table='{1}') is an unknown secondary table.",
fieldName,
tableName));
column = table.createColumn(name, amberType);
}
else if (entityType.getTable() != null)
column = entityType.getTable().createColumn(name, amberType);
else { // jpa/0ge2: MappedSuperclassType
column = new AmberColumn(null, name, amberType);