public class ManyToMany extends java.lang.Object implements RelationField
Java class for many-to-many complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="many-to-many">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<element name="order-by" type="{http://java.sun.com/xml/ns/persistence/orm}order-by" minOccurs="0"/>
<element name="order-column" type="{http://java.sun.com/xml/ns/persistence/orm}order-column" minOccurs="0"/>
</choice>
<choice>
<element name="map-key" type="{http://java.sun.com/xml/ns/persistence/orm}map-key" minOccurs="0"/>
<sequence>
<element name="map-key-class" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-class" minOccurs="0"/>
<choice>
<element name="map-key-temporal" type="{http://java.sun.com/xml/ns/persistence/orm}temporal" minOccurs="0"/>
<element name="map-key-enumerated" type="{http://java.sun.com/xml/ns/persistence/orm}enumerated" minOccurs="0"/>
<element name="map-key-attribute-override" type="{http://java.sun.com/xml/ns/persistence/orm}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
</choice>
<choice>
<element name="map-key-column" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-column" minOccurs="0"/>
<element name="map-key-join-column" type="{http://java.sun.com/xml/ns/persistence/orm}map-key-join-column" maxOccurs="unbounded" minOccurs="0"/>
</choice>
</sequence>
</choice>
<element name="join-table" type="{http://java.sun.com/xml/ns/persistence/orm}join-table" minOccurs="0"/>
<element name="cascade" type="{http://java.sun.com/xml/ns/persistence/orm}cascade-type" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="target-entity" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="fetch" type="{http://java.sun.com/xml/ns/persistence/orm}fetch-type" />
<attribute name="access" type="{http://java.sun.com/xml/ns/persistence/orm}access-type" />
<attribute name="mapped-by" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected AccessType |
access |
protected CascadeType |
cascade |
protected FetchType |
fetch |
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 RelationField |
relatedField |
protected boolean |
syntheticField |
protected java.lang.String |
targetEntity |
| Constructor and Description |
|---|
ManyToMany() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
CascadeType |
getCascade()
Gets the value of the cascade property.
|
FetchType |
getFetch()
Gets the value of the fetch property.
|
java.util.List<JoinColumn> |
getJoinColumn() |
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.
|
boolean |
isSyntheticField()
This is only used for xml converters and will normally return false.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
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 |
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 CascadeType cascade
protected FetchType fetch
protected AccessType access
protected java.lang.String mappedBy
protected java.lang.String name
protected java.lang.String targetEntity
protected RelationField relatedField
protected boolean syntheticField
public java.lang.String getOrderBy()
Stringpublic void setOrderBy(java.lang.String value)
value - allowed object is
Stringpublic OrderColumn getOrderColumn()
OrderColumnpublic void setOrderColumn(OrderColumn value)
value - allowed object is
OrderColumnpublic MapKey getMapKey()
MapKeypublic void setMapKey(MapKey value)
value - allowed object is
MapKeypublic MapKeyClass getMapKeyClass()
MapKeyClasspublic void setMapKeyClass(MapKeyClass value)
value - allowed object is
MapKeyClasspublic TemporalType getMapKeyTemporal()
TemporalTypepublic void setMapKeyTemporal(TemporalType value)
value - allowed object is
TemporalTypepublic EnumType getMapKeyEnumerated()
EnumTypepublic void setMapKeyEnumerated(EnumType value)
value - allowed object is
EnumTypepublic 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
AttributeOverridepublic MapKeyColumn getMapKeyColumn()
MapKeyColumnpublic void setMapKeyColumn(MapKeyColumn value)
value - allowed object is
MapKeyColumnpublic 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
MapKeyJoinColumnpublic JoinTable getJoinTable()
getJoinTable in interface RelationFieldJoinTablepublic void setJoinTable(JoinTable value)
setJoinTable in interface RelationFieldvalue - allowed object is
JoinTablepublic CascadeType getCascade()
getCascade in interface RelationFieldCascadeTypepublic void setCascade(CascadeType value)
setCascade in interface RelationFieldvalue - allowed object is
CascadeTypepublic FetchType getFetch()
getFetch in interface RelationFieldFetchTypepublic void setFetch(FetchType value)
setFetch in interface RelationFieldvalue - allowed object is
FetchTypepublic java.lang.String getMappedBy()
getMappedBy in interface RelationFieldStringpublic void setMappedBy(java.lang.String value)
setMappedBy in interface RelationFieldvalue - allowed object is
Stringpublic java.lang.String getName()
getName in interface RelationFieldStringpublic void setName(java.lang.String value)
setName in interface RelationFieldvalue - allowed object is
Stringpublic AccessType getAccess()
AccessTypepublic void setAccess(AccessType value)
value - allowed object is
AccessTypepublic java.lang.String getTargetEntity()
getTargetEntity in interface RelationFieldStringpublic void setTargetEntity(java.lang.String value)
setTargetEntity in interface RelationFieldvalue - allowed object is
Stringpublic java.util.List<JoinColumn> getJoinColumn()
getJoinColumn in interface RelationFieldpublic RelationField getRelatedField()
getRelatedField in interface RelationFieldpublic void setRelatedField(RelationField value)
setRelatedField in interface RelationFieldvalue - field on the target entity for this relationship.public boolean isSyntheticField()
isSyntheticField in interface RelationFieldpublic void setSyntheticField(boolean syntheticField)
setSyntheticField in interface RelationField