public class Many2ManyAssociation extends Association
Modifier and Type | Field and Description |
---|---|
static String |
JOIN |
static String |
SOURCE_FK |
static String |
TARGET_FK |
static String |
TARGET_PK |
CLASS, SOURCE, TARGET
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) |
Many2ManyAssociation(Map<String,Object> map) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getJoin() |
String |
getSourceFkName() |
String |
getTargetFkName() |
String |
getTargetPk() |
Map<String,Object> |
toMap() |
String |
toString() |
getSourceClass, getTargetClass, hashCode
public static final String SOURCE_FK
public static final String TARGET_FK
public static final String JOIN
public static final String TARGET_PK
public Many2ManyAssociation(Map<String,Object> map) throws ClassNotFoundException
ClassNotFoundException
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 © 2020 JavaLite. All rights reserved.