this.addExtraColumn();
AssociationKeyMetadata metadata = new AssociationKeyMetadata.Builder()
.table( "Project_Module" )
.columnNames( new String[] { "Project_id" } )
.rowKeyColumnNames( new String[] { "Project_id", "module_id" } )
.associatedEntityKeyMetadata( new AssociatedEntityKeyMetadata( new String[] { "module_id" }, new EntityKeyMetadata( "Module", new String[] { "id" } ) ) )
.inverse( false )
.collectionRole( "modules" )
.associationKind( AssociationKind.ASSOCIATION )
.oneToOne( false )
.build();
AssociationKey associationKey = new AssociationKey(
metadata,
new Object[] { "projectID" },
new EntityKey(
new EntityKeyMetadata( "Project", new String[] { "id" } ),
new String[] { "projectID" }
)
);
AssociationContext associationContext = new AssociationContextImpl(