Class BelongsToAssociation
- java.lang.Object
-
- org.javalite.activejdbc.associations.Association
-
- org.javalite.activejdbc.associations.BelongsToAssociation
-
- All Implemented Interfaces:
Serializable
public class BelongsToAssociation extends Association
This association indicates that a source table belongs to the target table. It is used for one to many relationships.- Author:
- Igor Polevoy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BelongsToAssociation(Class<? extends Model> source, Class<? extends Model> target, String fkName)
BelongsToAssociation(Map<String,Object> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getFkName()
Map<String,Object>
toMap()
String
toString()
-
Methods inherited from class org.javalite.activejdbc.associations.Association
getSourceClass, getTargetClass, hashCode
-
-
-
-
Field Detail
-
FK
public static final String FK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BelongsToAssociation
public BelongsToAssociation(Map<String,Object> map) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
-