/** * PUBLIC: * Define the target foreign key relationship in the 1-M aggregate collection mapping. * Both the target foreign key field name and the source primary key field name must be specified. */ public void addTargetForeignKeyFieldName(String targetForeignKey, String sourceKey) { addTargetForeignKeyField(new DatabaseField(targetForeignKey), new DatabaseField(sourceKey)); }
/** * PUBLIC: * Define the target foreign key relationship in the 1-M aggregate collection mapping. * Both the target foreign key field name and the source primary key field name must be specified. */ public void addTargetForeignKeyFieldName(String targetForeignKey, String sourceKey) { addTargetForeignKeyField(new DatabaseField(targetForeignKey), new DatabaseField(sourceKey)); }
/** * PUBLIC: * Define the target foreign key relationship in the 1-M aggregate collection mapping. * Both the target foreign key field name and the source primary key field name must be specified. */ public void addTargetForeignKeyFieldName(String targetForeignKey, String sourceKey) { addTargetForeignKeyField(new DatabaseField(targetForeignKey), new DatabaseField(sourceKey)); }
((AggregateCollectionMapping) mapping).addTargetForeignKeyField(fkField, pkField);