public class OneToOneConfig extends Object implements CascadeGetter, CacheConfigGetter, FetchTypeGetter, AssociationActionGetter, LabelGetter, TargetEntityNameGetter
Constructor and Description |
---|
OneToOneConfig() |
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.
|
Boolean |
getOrphanRemoval()
The JPA orphanRemoval 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 |
setOrphanRemoval(Boolean orphanRemoval) |
void |
setTargetEntityName(String targetEntityName) |
void |
setVar(String var) |
public String getVar()
public boolean hasVar()
public Boolean getOrphanRemoval()
public FetchType getFetch()
getFetch
in interface FetchTypeGetter
public String getTargetEntityName()
getTargetEntityName
in interface TargetEntityNameGetter
public boolean hasTargetEntityName()
hasTargetEntityName
in interface TargetEntityNameGetter
public List<Label> getLabels()
getLabels
in interface LabelGetter
public List<Cascade> getCascades()
getCascades
in interface CascadeGetter
public void forceCascadesToNullIfEmpty()
public CacheConfig getCacheConfig()
getCacheConfig
in interface CacheConfigGetter
public AssociationAction getAssociationAction()
getAssociationAction
in interface AssociationActionGetter
public void setVar(String var)
public void setOrphanRemoval(Boolean orphanRemoval)
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.