/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ public void addForeignKeyFieldName(String sourceForeignKeyFieldName, String targetKeyFieldName) { this.addForeignKeyField(new DatabaseField(sourceForeignKeyFieldName), new DatabaseField(targetKeyFieldName)); }
/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ public void addForeignKeyFieldName(String sourceForeignKeyFieldName, String targetKeyFieldName) { this.addForeignKeyField(new DatabaseField(sourceForeignKeyFieldName), new DatabaseField(targetKeyFieldName)); }
/** * PUBLIC: * Define the source foreign key relationship in the one-to-many mapping. * This method is used for composite source foreign key relationships. * That is, the source object's table has multiple foreign key fields * that are references to * the target object's (typically primary) key fields. * Both the source foreign key field name and the corresponding * target primary key field name must be specified. */ public void addForeignKeyFieldName(String sourceForeignKeyFieldName, String targetKeyFieldName) { this.addForeignKeyField(new DatabaseField(sourceForeignKeyFieldName), new DatabaseField(targetKeyFieldName)); }