final Type uniqueKeyType = getPropertyTypes()[index];
if ( uniqueKeyType.isEntityType() ) {
String[] propertyColumnNames = getPropertyColumnNames( index );
String[] rowKeyColumnNames = buildRowKeyColumnNamesForStarToOne( this, propertyColumnNames );
String tableName = getTableName();
EntityKeyMetadata entityKeyMetadata = createTargetEntityKeyMetadatata( tableName, propertyColumnNames, rowKeyColumnNames );
AssociationKeyMetadata metadata = new AssociationKeyMetadata(
tableName,
propertyColumnNames,
rowKeyColumnNames,
ArrayHelper.EMPTY_STRING_ARRAY,
entityKeyMetadata,
entityKeyMetadata.getColumnNames()
);
associationKeyMetadataPerPropertyName.put( getPropertyNames()[index], metadata );
}
}
}