{
_embeddedField = embeddedField;
_embeddableField = embeddableField;
_index = index;
AmberColumn embeddableColumn;
if (embeddableField instanceof PropertyField) {
embeddableColumn = ((PropertyField) embeddableField).getColumn();
}
else
throw new IllegalStateException(L.l("'{0}' is an unknown field type of @Embeddable bean.",
embeddableField.getClass().getName()));
if (embeddableColumn == null)
throw new IllegalStateException(embeddableField + " column is null");
_column = new AmberColumn(_embeddedField.getTable(),
embeddableColumn.getName(),
embeddableColumn.getType());
}