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, hashCodepublic static final String FK
public OneToManyAssociation(Map<String,Object> map) throws ClassNotFoundException
ClassNotFoundExceptionpublic 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 © 2022 JavaLite. All rights reserved.