Class Association
java.lang.Object
org.javalite.activejdbc.associations.Association
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BelongsToAssociation
,BelongsToPolymorphicAssociation
,Many2ManyAssociation
,OneToManyAssociation
,OneToManyPolymorphicAssociation
Associations are synonymous with relationships. However, in some cases, the
DB might have referential integrity constraints. ActiveJDBC does not account for DB referential integrity
constraints, associations rather based on conventions and convention overrides.
- Author:
- Igor Polevoy
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Association(Class<? extends Model> source, Class<? extends Model> target)
Association(Map<String,Object> map)
-
Method Summary
-
Field Details
-
SOURCE
- See Also:
- Constant Field Values
-
TARGET
- See Also:
- Constant Field Values
-
CLASS
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Association
- Throws:
ClassNotFoundException
-
Association
- Parameters:
source
- source class of this association.target
- target class of this association.
-
-
Method Details