Class Many2ManyAssociation
- java.lang.Object
-
- org.javalite.activejdbc.associations.Association
-
- org.javalite.activejdbc.associations.Many2ManyAssociation
-
- All Implemented Interfaces:
Serializable
public class Many2ManyAssociation extends Association
- Author:
- Igor Polevoy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getJoin()
String
getSourceFkName()
String
getTargetFkName()
String
getTargetPk()
Map<String,Object>
toMap()
String
toString()
-
Methods inherited from class org.javalite.activejdbc.associations.Association
getSourceClass, getTargetClass, hashCode
-
-
-
-
Field Detail
-
SOURCE_FK
public static final String SOURCE_FK
- See Also:
- Constant Field Values
-
TARGET_FK
public static final String TARGET_FK
- See Also:
- Constant Field Values
-
JOIN
public static final String JOIN
- See Also:
- Constant Field Values
-
TARGET_PK
public static final String TARGET_PK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Many2ManyAssociation
public Many2ManyAssociation(Map<String,Object> map) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
Many2ManyAssociation
public Many2ManyAssociation(Class<? extends Model> source, Class<? extends Model> target, String join, String sourceFkName, String targetFkName, String targetPk)
- Parameters:
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 table
-
-