Class Many2ManyAssociation
java.lang.Object
org.javalite.activejdbc.associations.Association
org.javalite.activejdbc.associations.Many2ManyAssociation
- All Implemented Interfaces:
Serializable
- Author:
- Igor Polevoy
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.javalite.activejdbc.associations.Association
CLASS, SOURCE, TARGET
-
Constructor Summary
ConstructorDescriptionMany2ManyAssociation(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
Methods inherited from class org.javalite.activejdbc.associations.Association
getSourceClass, getTargetClass, hashCode
-
Field Details
-
SOURCE_FK
- See Also:
- Constant Field Values
-
TARGET_FK
- See Also:
- Constant Field Values
-
JOIN
- See Also:
- Constant Field Values
-
TARGET_PK
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Many2ManyAssociation
- 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
-
Many2ManyAssociation
-
-
Method Details