org.javalite.activejdbc
Class Association
java.lang.Object
org.javalite.activejdbc.Association
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BelongsToAssociation, BelongsToPolymorphicAssociation, Many2ManyAssociation, OneToManyAssociation, OneToManyPolymorphicAssociation
public class Association
- extends Object
- implements Serializable
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
Association
protected Association(String source,
String target)
- Parameters:
source - source table name of this association.target - target table name of this association.
getSource
public String getSource()
- Returns source table name of this association.
- Returns:
- source table name of this association.
getTarget
public String getTarget()
- Returns target table name of this association.
- Returns:
- target table name of this association.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2015 JavaLite. All rights reserved.