Class OneToManyAssociation
java.lang.Object
org.javalite.activejdbc.associations.Association
org.javalite.activejdbc.associations.OneToManyAssociation
- 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
ConstructorDescriptionOneToManyAssociation(Class<? extends Model> sourceModelClass, Class<? extends Model> targetModelClass, String fkName)
OneToManyAssociation(Map<String,Object> map)
-
Method Summary
Methods inherited from class org.javalite.activejdbc.associations.Association
getSourceClass, getTargetClass, hashCode
-
Field Details
-
FK
- See Also:
- Constant Field Values
-
-
Constructor Details
-
OneToManyAssociation
- Throws:
ClassNotFoundException
-
OneToManyAssociation
public OneToManyAssociation(Class<? extends Model> sourceModelClass, Class<? extends Model> targetModelClass, String fkName)- Parameters:
sourceModelClass
- source class, the one that has many targetstargetModelClass
- target class - many targets belong to source.fkName
- name of a foreign key in teh target table.
-
-
Method Details