public class OneToMany extends java.lang.Object implements RelationField
Modifier and Type | Field and Description |
---|---|
protected CascadeType |
cascade |
protected FetchType |
fetch |
protected java.util.List<JoinColumn> |
joinColumn |
protected JoinTable |
joinTable |
protected MapKey |
mapKey |
protected java.util.List<AttributeOverride> |
mapKeyAttributeOverride |
protected MapKeyClass |
mapKeyClass |
protected MapKeyColumn |
mapKeyColumn |
protected EnumType |
mapKeyEnumerated |
protected java.util.List<MapKeyJoinColumn> |
mapKeyJoinColumn |
protected TemporalType |
mapKeyTemporal |
protected java.lang.String |
mappedBy |
protected java.lang.String |
name |
protected java.lang.String |
orderBy |
protected OrderColumn |
orderColumn |
protected java.lang.Boolean |
orphanRemoval |
protected RelationField |
relatedField |
protected boolean |
syntheticField |
protected java.lang.String |
targetEntity |
Constructor and Description |
---|
OneToMany() |
Modifier and Type | Method and Description |
---|---|
CascadeType |
getCascade()
Gets the value of the cascade property.
|
FetchType |
getFetch()
Gets the value of the fetch property.
|
java.util.List<JoinColumn> |
getJoinColumn()
Gets the value of the joinColumn property.
|
JoinTable |
getJoinTable()
Gets the value of the joinTable property.
|
java.lang.Object |
getKey()
Gets the immutable key for this object.
|
MapKey |
getMapKey()
Gets the value of the mapKey property.
|
java.util.List<AttributeOverride> |
getMapKeyAttributeOverride()
Gets the value of the mapKeyAttributeOverride property.
|
MapKeyClass |
getMapKeyClass()
Gets the value of the mapKeyClass property.
|
MapKeyColumn |
getMapKeyColumn()
Gets the value of the mapKeyColumn property.
|
EnumType |
getMapKeyEnumerated()
Gets the value of the mapKeyEnumerated property.
|
java.util.List<MapKeyJoinColumn> |
getMapKeyJoinColumn()
Gets the value of the mapKeyJoinColumn property.
|
TemporalType |
getMapKeyTemporal()
Gets the value of the mapKeyTemporal property.
|
java.lang.String |
getMappedBy()
Gets the value of the mappedBy property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
java.lang.String |
getOrderBy()
Gets the value of the orderBy property.
|
OrderColumn |
getOrderColumn()
Gets the value of the orderColumn property.
|
RelationField |
getRelatedField()
This is only used for xml converters and will normally return null.
|
java.lang.String |
getTargetEntity()
Gets the value of the targetEntity property.
|
java.lang.Boolean |
isOrphanRemoval()
Gets the value of the orphanRemoval property.
|
boolean |
isSyntheticField()
This is only used for xml converters and will normally return false.
|
void |
setCascade(CascadeType value)
Sets the value of the cascade property.
|
void |
setFetch(FetchType value)
Sets the value of the fetch property.
|
void |
setJoinTable(JoinTable value)
Sets the value of the joinTable property.
|
void |
setMapKey(MapKey value)
Sets the value of the mapKey property.
|
void |
setMapKeyClass(MapKeyClass value)
Sets the value of the mapKeyClass property.
|
void |
setMapKeyColumn(MapKeyColumn value)
Sets the value of the mapKeyColumn property.
|
void |
setMapKeyEnumerated(EnumType value)
Sets the value of the mapKeyEnumerated property.
|
void |
setMapKeyTemporal(TemporalType value)
Sets the value of the mapKeyTemporal property.
|
void |
setMappedBy(java.lang.String value)
Sets the value of the mappedBy property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setOrderBy(java.lang.String value)
Sets the value of the orderBy property.
|
void |
setOrderColumn(OrderColumn value)
Sets the value of the orderColumn property.
|
void |
setOrphanRemoval(java.lang.Boolean value)
Sets the value of the orphanRemoval property.
|
void |
setRelatedField(RelationField value)
Gets the field on the target entity for this relationship.
|
void |
setSyntheticField(boolean syntheticField)
This is only used for xml converters and will normally return false.
|
void |
setTargetEntity(java.lang.String value)
Sets the value of the targetEntity property.
|
protected java.lang.String orderBy
protected OrderColumn orderColumn
protected MapKey mapKey
protected MapKeyClass mapKeyClass
protected TemporalType mapKeyTemporal
protected EnumType mapKeyEnumerated
protected java.util.List<AttributeOverride> mapKeyAttributeOverride
protected MapKeyColumn mapKeyColumn
protected java.util.List<MapKeyJoinColumn> mapKeyJoinColumn
protected JoinTable joinTable
protected java.util.List<JoinColumn> joinColumn
protected CascadeType cascade
protected FetchType fetch
protected java.lang.String mappedBy
protected java.lang.Boolean orphanRemoval
protected java.lang.String name
protected java.lang.String targetEntity
protected RelationField relatedField
protected boolean syntheticField
public java.lang.String getOrderBy()
String
public void setOrderBy(java.lang.String value)
value
- allowed object is
String
public OrderColumn getOrderColumn()
OrderColumn
public void setOrderColumn(OrderColumn value)
value
- allowed object is
OrderColumn
public MapKey getMapKey()
MapKey
public void setMapKey(MapKey value)
value
- allowed object is
MapKey
public MapKeyClass getMapKeyClass()
MapKeyClass
public void setMapKeyClass(MapKeyClass value)
value
- allowed object is
MapKeyClass
public TemporalType getMapKeyTemporal()
TemporalType
public void setMapKeyTemporal(TemporalType value)
value
- allowed object is
TemporalType
public EnumType getMapKeyEnumerated()
EnumType
public void setMapKeyEnumerated(EnumType value)
value
- allowed object is
EnumType
public java.util.List<AttributeOverride> getMapKeyAttributeOverride()
set
method for the mapKeyAttributeOverride property.
For example, to add a new item, do as follows:
getMapKeyAttributeOverride().add(newItem);Objects of the following type(s) are allowed in the list
AttributeOverride
public MapKeyColumn getMapKeyColumn()
MapKeyColumn
public void setMapKeyColumn(MapKeyColumn value)
value
- allowed object is
MapKeyColumn
public java.util.List<MapKeyJoinColumn> getMapKeyJoinColumn()
set
method for the mapKeyJoinColumn property.
For example, to add a new item, do as follows:
getMapKeyJoinColumn().add(newItem);Objects of the following type(s) are allowed in the list
MapKeyJoinColumn
public JoinTable getJoinTable()
getJoinTable
in interface RelationField
JoinTable
public void setJoinTable(JoinTable value)
setJoinTable
in interface RelationField
value
- allowed object is
JoinTable
public java.util.List<JoinColumn> getJoinColumn()
set
method for the joinColumn property.
For example, to add a new item, do as follows:
getJoinColumn().add(newItem);Objects of the following type(s) are allowed in the list
JoinColumn
getJoinColumn
in interface RelationField
public CascadeType getCascade()
getCascade
in interface RelationField
CascadeType
public void setCascade(CascadeType value)
setCascade
in interface RelationField
value
- allowed object is
CascadeType
public FetchType getFetch()
getFetch
in interface RelationField
FetchType
public void setFetch(FetchType value)
setFetch
in interface RelationField
value
- allowed object is
FetchType
public java.lang.String getMappedBy()
getMappedBy
in interface RelationField
String
public void setMappedBy(java.lang.String value)
setMappedBy
in interface RelationField
value
- allowed object is
String
public java.lang.String getName()
getName
in interface RelationField
String
public void setName(java.lang.String value)
setName
in interface RelationField
value
- allowed object is
String
public java.lang.String getTargetEntity()
getTargetEntity
in interface RelationField
String
public void setTargetEntity(java.lang.String value)
setTargetEntity
in interface RelationField
value
- allowed object is
String
public RelationField getRelatedField()
getRelatedField
in interface RelationField
public void setRelatedField(RelationField value)
setRelatedField
in interface RelationField
value
- field on the target entity for this relationship.public boolean isSyntheticField()
isSyntheticField
in interface RelationField
public void setSyntheticField(boolean syntheticField)
setSyntheticField
in interface RelationField
public java.lang.Boolean isOrphanRemoval()
Boolean
public void setOrphanRemoval(java.lang.Boolean value)
value
- allowed object is
Boolean