final ObjectAssociation[] oneToOneProperties = new ObjectAssociation[simpleFieldCount];
final ObjectAssociation[] oneToManyProperties = new ObjectAssociation[collectionFieldCount];
collectionMappers = new CollectionMapper[collectionFieldCount];
collectionMapperFields = new String[collectionFieldCount];
final IsisConfiguration subset = getConfiguration().createSubset(parameterBase + ".mapper.");
for (int i = 0, simpleFieldNo = 0, collectionFieldNo = 0; i < fields.size(); i++) {
final ObjectAssociation field = fields.get(i);
if (field.isNotPersisted()) {
continue;
} else if (field.isOneToManyAssociation()) {
oneToManyProperties[collectionFieldNo] = field;
// TODO: Replace "new ForeignKeyCollectionMapper" with a factory
// method(?) to allow a different
// default CollectionMapper
// TODO: I think the default order should be changed - and I
// think I (KAM) have dropped support for the
// original "association-table" implementation. This means the
// current checks are misleading.
final String type = subset.getString(field.getId());
if (type == null || type.equals("association-table")) {
// collectionMappers[collectionFieldNo] = new
// AutoCollectionMapper(specification,
// oneToManyProperties[collectionFieldNo], lookup);
// collectionMappers[collectionFieldNo] = new