public class ManyToOneConfig extends Object implements CascadeGetter, CacheConfigGetter, FetchTypeGetter, AssociationActionGetter, LabelGetter, TargetEntityNameGetter
| Constructor and Description |
|---|
ManyToOneConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceCascadesToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
AssociationAction |
getAssociationAction()
Configure which actions should or should not be generated for this association in the front end layer.
|
CacheConfig |
getCacheConfig()
The 2d level cache configuration for this association.
|
List<Cascade> |
getCascades()
The list of JPA cascade types for the this association.
|
FetchType |
getFetch()
The JPA fetch type for this association.
|
List<Label> |
getLabels()
The labels for this association.
|
String |
getTargetEntityName()
If the target entity is part of a SINGLE_TABLE inheritance hierarchy, you must set name of the target entity as Celerio cannot guess it.
|
String |
getVar()
The variable name for association.
|
boolean |
hasTargetEntityName() |
boolean |
hasVar() |
void |
setAssociationAction(AssociationAction associationAction) |
void |
setCacheConfig(CacheConfig cacheConfig) |
void |
setCascades(List<Cascade> cascades) |
void |
setFetch(FetchType fetch) |
void |
setLabels(List<Label> labels) |
void |
setTargetEntityName(String targetEntityName) |
void |
setVar(String var) |
public String getVar()
public boolean hasVar()
public FetchType getFetch()
getFetch in interface FetchTypeGetterpublic String getTargetEntityName()
getTargetEntityName in interface TargetEntityNameGetterpublic boolean hasTargetEntityName()
hasTargetEntityName in interface TargetEntityNameGetterpublic List<Label> getLabels()
getLabels in interface LabelGetterpublic List<Cascade> getCascades()
getCascades in interface CascadeGetterpublic void forceCascadesToNullIfEmpty()
public CacheConfig getCacheConfig()
getCacheConfig in interface CacheConfigGetterpublic AssociationAction getAssociationAction()
getAssociationAction in interface AssociationActionGetterpublic void setVar(String var)
public void setFetch(FetchType fetch)
public void setTargetEntityName(String targetEntityName)
public void setCacheConfig(CacheConfig cacheConfig)
public void setAssociationAction(AssociationAction associationAction)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.