public class OneToManyConfig extends Object implements CascadeGetter, CacheConfigGetter, FetchTypeGetter, OrderByGetter, AssociationActionGetter, LabelGetter
| Constructor and Description |
|---|
OneToManyConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
forceCascadesToNullIfEmpty()
Convenient for hbm2celerio to avoid dead tags.
|
AssociationAction |
getAssociationAction()
Configure which actions should 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.
|
String |
getElementVar()
The variable name for an element of the collection.
|
FetchType |
getFetch()
The JPA fetch type for this association.
|
List<Label> |
getLabels()
The labels for this association.
|
String |
getOrderBy()
Specifies the ordering of the elements.
|
Boolean |
getOrphanRemoval()
The JPA orphanRemoval for this association.
|
String |
getVar()
The variable name for the collection.
|
boolean |
hasElementVar() |
boolean |
hasVar() |
void |
setAssociationAction(AssociationAction associationAction) |
void |
setCacheConfig(CacheConfig cacheConfig) |
void |
setCascades(List<Cascade> cascades) |
void |
setElementVar(String elementVar) |
void |
setFetch(FetchType fetch) |
void |
setLabels(List<Label> labels) |
void |
setOrderBy(String orderBy) |
void |
setOrphanRemoval(Boolean orphanRemoval) |
void |
setVar(String var) |
public String getVar()
public boolean hasVar()
public String getElementVar()
public boolean hasElementVar()
public Boolean getOrphanRemoval()
public FetchType getFetch()
getFetch in interface FetchTypeGetterpublic String getOrderBy()
@OrderBy annotation is used. Example: orderBy="birthdate DESC" will generategetOrderBy in interface OrderByGetterpublic 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 setElementVar(String elementVar)
public void setOrphanRemoval(Boolean orphanRemoval)
public void setFetch(FetchType fetch)
public void setOrderBy(String orderBy)
public void setCacheConfig(CacheConfig cacheConfig)
public void setAssociationAction(AssociationAction associationAction)
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.