public class OneToManyAssociation extends Association
Modifier and Type | Field and Description |
---|---|
static String |
FK |
CLASS, SOURCE, TARGET
Constructor and Description |
---|
OneToManyAssociation(Class<? extends Model> sourceModelClass,
Class<? extends Model> targetModelClass,
String fkName) |
OneToManyAssociation(Map<String,Object> map) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getFkName() |
Map<String,Object> |
toMap() |
String |
toString() |
getSourceClass, getTargetClass, hashCode
public static final String FK
public OneToManyAssociation(Map<String,Object> map) throws ClassNotFoundException
ClassNotFoundException
public OneToManyAssociation(Class<? extends Model> sourceModelClass, Class<? extends Model> targetModelClass, String fkName)
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.Copyright © 2019 JavaLite. All rights reserved.