}
@Override
public void complete()
{
PropertyField property = new PropertyField(_sourceType, _fieldName);
AmberPersistenceUnit persistenceUnit = _sourceType.getPersistenceUnit();
AmberType amberType;
if (_enumerated == null)
amberType = persistenceUnit.createType(_fieldType);
else {
com.caucho.amber.type.EnumType enumType;
enumType = persistenceUnit.createEnum(_fieldType.getName(),
_fieldType);
enumType.setOrdinal(_enumerated == javax.persistence.EnumType.ORDINAL);
amberType = enumType;
}
// jpa/0w24
property.setType(amberType);
property.setLazy(isFetchLazy());
AmberColumn fieldColumn = createColumn(amberType);
property.setColumn(fieldColumn);
/*
field.setInsertable(insertable);
field.setUpdateable(updateable);