public class Many2ManyAssociation extends Association
Constructor and Description |
---|
Many2ManyAssociation(Class<? extends Model> sourceModelClass,
Class<? extends Model> targetModelClass,
String join,
String sourceFkName,
String targetFkName) |
Many2ManyAssociation(Class<? extends Model> source,
Class<? extends Model> target,
String join,
String sourceFkName,
String targetFkName,
String targetPk) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getJoin() |
String |
getSourceFkName() |
String |
getTargetFkName() |
String |
getTargetPk() |
String |
toString() |
getSourceClass, getTargetClass, hashCode
public Many2ManyAssociation(Class<? extends Model> source, Class<? extends Model> target, String join, String sourceFkName, String targetFkName, String targetPk)
source
- name of source table in relationshiptarget
- name of target table in relationshipjoin
- name of join table in relationshipsourceFkName
- name of a foreign key in the join table pointing to the source table PK.targetFkName
- name of a foreign key in the join table pointing to the target table PK.targetPk
- name of a PK of a target tableCopyright © 2018 JavaLite. All rights reserved.