builder.build(fkTable.getID().getTableName() + "_USER_FK_" + pkTable.getID().getTableName() + "_" + counter)); counter++;
builder.build(fkTable.getID().getTableName() + "_USER_FK_" + pkTable.getID().getTableName() + "_" + counter)); counter++;
/** * creates a single-attribute foreign key * * @param name * @param attribute * @param reference * @return */ public static ForeignKeyConstraint of(String name, Attribute attribute, Attribute reference) { return new Builder((DatabaseRelationDefinition)attribute.getRelation(), (DatabaseRelationDefinition)reference.getRelation()) .add(attribute, reference).build(name); }
/** * creates a single-attribute foreign key * * @param name * @param attribute * @param reference * @return */ public static ForeignKeyConstraint of(String name, Attribute attribute, Attribute reference) { return new Builder((DatabaseRelationDefinition)attribute.getRelation(), (DatabaseRelationDefinition)reference.getRelation()) .add(attribute, reference).build(name); }