private EntityKey createEntityKey(String tableName, String[] columnNames, Object[] values) {
return new EntityKey( new EntityKeyMetadata( tableName, columnNames ), values );
}
private AssociationKey createAssociationKey(EntityKey ownerEntityKey, String collectionRole, String tableName, String[] columnNames, Object[] columnValues, String[] rowKeyColumnNames) {
AssociationKeyMetadata associationKeyMetadata = new AssociationKeyMetadata.Builder()
.table( tableName )
.columnNames( columnNames )
.rowKeyColumnNames( rowKeyColumnNames )
.associatedEntityKeyMetadata( new AssociatedEntityKeyMetadata( EMPTY_STRING_ARRAY, null ) )
.inverse( false )