final boolean readOnly = cmpFieldMapping.getReadOnly() != null;
for (final ColumnName columnName : cmpFieldMapping.getColumnName()) {
final SunColumnName sunColumnName = new SunColumnName(columnName, table.getName());
final Column column = new Column();
column.setTable(sunColumnName.table);
column.setName(sunColumnName.column);
if (readOnly) {
column.setInsertable(false);
column.setUpdatable(false);
}
field.setColumn(column);
}
// todo set fetch lazy when fetchWith is null
// FetchedWith fetchedWith = cmpFieldMapping.getFetchedWith();