public class ManyToManyConfig extends Object implements CascadeGetter, CacheConfigGetter, FetchTypeGetter, OrderByGetter, AssociationActionGetter, LabelGetter
| Constructor and Description |
|---|
ManyToManyConfig() |
| 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.
|
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.
|
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 the collection.
|
boolean |
hasElementVar() |
boolean |
hasTargetEntityName() |
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 |
setTargetEntityName(String targetEntityName) |
void |
setVar(String var) |
public String getVar()
public boolean hasVar()
public String getElementVar()
public boolean hasElementVar()
public FetchType getFetch()
getFetch in interface FetchTypeGetterpublic String getOrderBy()
@OrderBy annotation is used. Example: orderBy="birthdate DESC" will generategetOrderBy in interface OrderByGetterpublic String getTargetEntityName()
public boolean hasTargetEntityName()
public 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 setFetch(FetchType fetch)
public void setOrderBy(String orderBy)
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.