Class JaxbManyToMany
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbManyToMany
-
- All Implemented Interfaces:
Serializable,AssociationAttribute,CollectionAttribute,FetchableAttribute,PersistentAttribute
public class JaxbManyToMany extends Object implements Serializable, AssociationAttribute, CollectionAttribute
See `@jakarta.persistence.ManyToMany` See `@org.hibernate.annotations.SortComparator` See `@org.hibernate.annotations.SortNatural` See `@org.hibernate.annotations.AttributeAccessor`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://www.hibernate.org/xsd/orm/mapping}order-by" minOccurs="0"/> <element name="order-column" type="{http://www.hibernate.org/xsd/orm/mapping}order-column" minOccurs="0"/> <element name="sort" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </choice> <choice> <element name="map-key" type="{http://www.hibernate.org/xsd/orm/mapping}map-key" minOccurs="0"/> <sequence> <element name="map-key-class" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-class" minOccurs="0"/> <choice> <element name="map-key-temporal" type="{http://www.hibernate.org/xsd/orm/mapping}temporal" minOccurs="0"/> <element name="map-key-enumerated" type="{http://www.hibernate.org/xsd/orm/mapping}enumerated" minOccurs="0"/> <sequence> <element name="map-key-attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/> <element name="map-key-convert" type="{http://www.hibernate.org/xsd/orm/mapping}convert" maxOccurs="unbounded" minOccurs="0"/> </sequence> </choice> <choice> <element name="map-key-column" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-column" minOccurs="0"/> <sequence> <element name="map-key-join-column" type="{http://www.hibernate.org/xsd/orm/mapping}map-key-join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="map-key-foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> </choice> </sequence> </choice> <element name="join-table" type="{http://www.hibernate.org/xsd/orm/mapping}join-table" minOccurs="0"/> <element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}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://www.hibernate.org/xsd/orm/mapping}fetch-type" /> <attribute name="fetch-mode" type="{http://www.hibernate.org/xsd/orm/mapping}plural-fetch-mode" /> <attribute name="access" type="{http://www.hibernate.org/xsd/orm/mapping}access-type" /> <attribute name="attribute-accessor" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="mapped-by" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="orphan-removal" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTypeaccessprotected StringattributeAccessorprotected JaxbCascadeTypecascadeprotected FetchTypefetchprotected JaxbPluralFetchModefetchModeprotected JaxbJoinTablejoinTableprotected JaxbMapKeymapKeyprotected List<JaxbAttributeOverride>mapKeyAttributeOverrideprotected JaxbMapKeyClassmapKeyClassprotected JaxbMapKeyColumnmapKeyColumnprotected List<JaxbConvert>mapKeyConvertprotected EnumTypemapKeyEnumeratedprotected JaxbForeignKeymapKeyForeignKeyprotected List<JaxbMapKeyJoinColumn>mapKeyJoinColumnprotected TemporalTypemapKeyTemporalprotected StringmappedByprotected Stringnameprotected StringorderByprotected JaxbOrderColumnorderColumnprotected BooleanorphanRemovalprotected Stringsortprotected StringtargetEntity
-
Constructor Summary
Constructors Constructor Description JaxbManyToMany()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccess()Gets the value of the access property.StringgetAttributeAccessor()Gets the value of the attributeAccessor property.JaxbCascadeTypegetCascade()Gets the value of the cascade property.FetchTypegetFetch()Gets the value of the fetch property.JaxbPluralFetchModegetFetchMode()Gets the value of the fetchMode property.JaxbJoinTablegetJoinTable()Gets the value of the joinTable property.JaxbMapKeygetMapKey()Gets the value of the mapKey property.List<JaxbAttributeOverride>getMapKeyAttributeOverride()Gets the value of the mapKeyAttributeOverride property.JaxbMapKeyClassgetMapKeyClass()Gets the value of the mapKeyClass property.JaxbMapKeyColumngetMapKeyColumn()Gets the value of the mapKeyColumn property.List<JaxbConvert>getMapKeyConvert()Gets the value of the mapKeyConvert property.EnumTypegetMapKeyEnumerated()Gets the value of the mapKeyEnumerated property.JaxbForeignKeygetMapKeyForeignKey()Gets the value of the mapKeyForeignKey property.List<JaxbMapKeyJoinColumn>getMapKeyJoinColumn()Gets the value of the mapKeyJoinColumn property.TemporalTypegetMapKeyTemporal()Gets the value of the mapKeyTemporal property.StringgetMappedBy()Gets the value of the mappedBy property.StringgetName()Gets the value of the name property.StringgetOrderBy()Gets the value of the orderBy property.JaxbOrderColumngetOrderColumn()Gets the value of the orderColumn property.StringgetSort()Gets the value of the sort property.StringgetTargetEntity()Gets the value of the targetEntity property.BooleanisOrphanRemoval()Gets the value of the orphanRemoval property.voidsetAccess(AccessType value)Sets the value of the access property.voidsetAttributeAccessor(String value)Sets the value of the attributeAccessor property.voidsetCascade(JaxbCascadeType value)Sets the value of the cascade property.voidsetFetch(FetchType value)Sets the value of the fetch property.voidsetFetchMode(JaxbPluralFetchMode value)Sets the value of the fetchMode property.voidsetJoinTable(JaxbJoinTable value)Sets the value of the joinTable property.voidsetMapKey(JaxbMapKey value)Sets the value of the mapKey property.voidsetMapKeyClass(JaxbMapKeyClass value)Sets the value of the mapKeyClass property.voidsetMapKeyColumn(JaxbMapKeyColumn value)Sets the value of the mapKeyColumn property.voidsetMapKeyEnumerated(EnumType value)Sets the value of the mapKeyEnumerated property.voidsetMapKeyForeignKey(JaxbForeignKey value)Sets the value of the mapKeyForeignKey property.voidsetMapKeyTemporal(TemporalType value)Sets the value of the mapKeyTemporal property.voidsetMappedBy(String value)Sets the value of the mappedBy property.voidsetName(String value)Sets the value of the name property.voidsetOrderBy(String value)Sets the value of the orderBy property.voidsetOrderColumn(JaxbOrderColumn value)Sets the value of the orderColumn property.voidsetOrphanRemoval(Boolean value)Sets the value of the orphanRemoval property.voidsetSort(String value)Sets the value of the sort property.voidsetTargetEntity(String value)Sets the value of the targetEntity property.
-
-
-
Field Detail
-
orderBy
protected String orderBy
-
orderColumn
protected JaxbOrderColumn orderColumn
-
sort
protected String sort
-
mapKey
protected JaxbMapKey mapKey
-
mapKeyClass
protected JaxbMapKeyClass mapKeyClass
-
mapKeyTemporal
protected TemporalType mapKeyTemporal
-
mapKeyEnumerated
protected EnumType mapKeyEnumerated
-
mapKeyAttributeOverride
protected List<JaxbAttributeOverride> mapKeyAttributeOverride
-
mapKeyConvert
protected List<JaxbConvert> mapKeyConvert
-
mapKeyColumn
protected JaxbMapKeyColumn mapKeyColumn
-
mapKeyJoinColumn
protected List<JaxbMapKeyJoinColumn> mapKeyJoinColumn
-
mapKeyForeignKey
protected JaxbForeignKey mapKeyForeignKey
-
joinTable
protected JaxbJoinTable joinTable
-
cascade
protected JaxbCascadeType cascade
-
name
protected String name
-
targetEntity
protected String targetEntity
-
fetch
protected FetchType fetch
-
fetchMode
protected JaxbPluralFetchMode fetchMode
-
access
protected AccessType access
-
attributeAccessor
protected String attributeAccessor
-
mappedBy
protected String mappedBy
-
orphanRemoval
protected Boolean orphanRemoval
-
-
Method Detail
-
getOrderBy
public String getOrderBy()
Gets the value of the orderBy property.- Specified by:
getOrderByin interfaceCollectionAttribute- Returns:
- possible object is
String
-
setOrderBy
public void setOrderBy(String value)
Sets the value of the orderBy property.- Specified by:
setOrderByin interfaceCollectionAttribute- Parameters:
value- allowed object isString
-
getOrderColumn
public JaxbOrderColumn getOrderColumn()
Gets the value of the orderColumn property.- Specified by:
getOrderColumnin interfaceCollectionAttribute- Returns:
- possible object is
JaxbOrderColumn
-
setOrderColumn
public void setOrderColumn(JaxbOrderColumn value)
Sets the value of the orderColumn property.- Specified by:
setOrderColumnin interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbOrderColumn
-
getSort
public String getSort()
Gets the value of the sort property.- Specified by:
getSortin interfaceCollectionAttribute- Returns:
- possible object is
String
-
setSort
public void setSort(String value)
Sets the value of the sort property.- Specified by:
setSortin interfaceCollectionAttribute- Parameters:
value- allowed object isString
-
getMapKey
public JaxbMapKey getMapKey()
Gets the value of the mapKey property.- Specified by:
getMapKeyin interfaceCollectionAttribute- Returns:
- possible object is
JaxbMapKey
-
setMapKey
public void setMapKey(JaxbMapKey value)
Sets the value of the mapKey property.- Specified by:
setMapKeyin interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbMapKey
-
getMapKeyClass
public JaxbMapKeyClass getMapKeyClass()
Gets the value of the mapKeyClass property.- Specified by:
getMapKeyClassin interfaceCollectionAttribute- Returns:
- possible object is
JaxbMapKeyClass
-
setMapKeyClass
public void setMapKeyClass(JaxbMapKeyClass value)
Sets the value of the mapKeyClass property.- Specified by:
setMapKeyClassin interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbMapKeyClass
-
getMapKeyTemporal
public TemporalType getMapKeyTemporal()
Gets the value of the mapKeyTemporal property.- Specified by:
getMapKeyTemporalin interfaceCollectionAttribute- Returns:
- possible object is
String
-
setMapKeyTemporal
public void setMapKeyTemporal(TemporalType value)
Sets the value of the mapKeyTemporal property.- Specified by:
setMapKeyTemporalin interfaceCollectionAttribute- Parameters:
value- allowed object isString
-
getMapKeyEnumerated
public EnumType getMapKeyEnumerated()
Gets the value of the mapKeyEnumerated property.- Specified by:
getMapKeyEnumeratedin interfaceCollectionAttribute- Returns:
- possible object is
String
-
setMapKeyEnumerated
public void setMapKeyEnumerated(EnumType value)
Sets the value of the mapKeyEnumerated property.- Specified by:
setMapKeyEnumeratedin interfaceCollectionAttribute- Parameters:
value- allowed object isString
-
getMapKeyAttributeOverride
public List<JaxbAttributeOverride> getMapKeyAttributeOverride()
Gets the value of the mapKeyAttributeOverride property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbAttributeOverride- Specified by:
getMapKeyAttributeOverridein interfaceCollectionAttribute- Returns:
- The value of the mapKeyAttributeOverride property.
-
getMapKeyConvert
public List<JaxbConvert> getMapKeyConvert()
Gets the value of the mapKeyConvert property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the mapKeyConvert property.For example, to add a new item, do as follows:
getMapKeyConvert().add(newItem);Objects of the following type(s) are allowed in the list
JaxbConvert- Specified by:
getMapKeyConvertin interfaceCollectionAttribute- Returns:
- The value of the mapKeyConvert property.
-
getMapKeyColumn
public JaxbMapKeyColumn getMapKeyColumn()
Gets the value of the mapKeyColumn property.- Specified by:
getMapKeyColumnin interfaceCollectionAttribute- Returns:
- possible object is
JaxbMapKeyColumn
-
setMapKeyColumn
public void setMapKeyColumn(JaxbMapKeyColumn value)
Sets the value of the mapKeyColumn property.- Specified by:
setMapKeyColumnin interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbMapKeyColumn
-
getMapKeyJoinColumn
public List<JaxbMapKeyJoinColumn> getMapKeyJoinColumn()
Gets the value of the mapKeyJoinColumn property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbMapKeyJoinColumn- Specified by:
getMapKeyJoinColumnin interfaceCollectionAttribute- Returns:
- The value of the mapKeyJoinColumn property.
-
getMapKeyForeignKey
public JaxbForeignKey getMapKeyForeignKey()
Gets the value of the mapKeyForeignKey property.- Specified by:
getMapKeyForeignKeyin interfaceCollectionAttribute- Returns:
- possible object is
JaxbForeignKey
-
setMapKeyForeignKey
public void setMapKeyForeignKey(JaxbForeignKey value)
Sets the value of the mapKeyForeignKey property.- Specified by:
setMapKeyForeignKeyin interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbForeignKey
-
getJoinTable
public JaxbJoinTable getJoinTable()
Gets the value of the joinTable property.- Specified by:
getJoinTablein interfaceAssociationAttribute- Returns:
- possible object is
JaxbJoinTable
-
setJoinTable
public void setJoinTable(JaxbJoinTable value)
Sets the value of the joinTable property.- Specified by:
setJoinTablein interfaceAssociationAttribute- Parameters:
value- allowed object isJaxbJoinTable
-
getCascade
public JaxbCascadeType getCascade()
Gets the value of the cascade property.- Specified by:
getCascadein interfaceAssociationAttribute- Returns:
- possible object is
JaxbCascadeType
-
setCascade
public void setCascade(JaxbCascadeType value)
Sets the value of the cascade property.- Specified by:
setCascadein interfaceAssociationAttribute- Parameters:
value- allowed object isJaxbCascadeType
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getNamein interfacePersistentAttribute- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setNamein interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getTargetEntity
public String getTargetEntity()
Gets the value of the targetEntity property.- Specified by:
getTargetEntityin interfaceAssociationAttribute- Returns:
- possible object is
String
-
setTargetEntity
public void setTargetEntity(String value)
Sets the value of the targetEntity property.- Specified by:
setTargetEntityin interfaceAssociationAttribute- Parameters:
value- allowed object isString
-
getFetch
public FetchType getFetch()
Gets the value of the fetch property.- Specified by:
getFetchin interfaceFetchableAttribute- Returns:
- possible object is
String
-
setFetch
public void setFetch(FetchType value)
Sets the value of the fetch property.- Specified by:
setFetchin interfaceFetchableAttribute- Parameters:
value- allowed object isString
-
getFetchMode
public JaxbPluralFetchMode getFetchMode()
Gets the value of the fetchMode property.- Specified by:
getFetchModein interfaceCollectionAttribute- Returns:
- possible object is
JaxbPluralFetchMode
-
setFetchMode
public void setFetchMode(JaxbPluralFetchMode value)
Sets the value of the fetchMode property.- Specified by:
setFetchModein interfaceCollectionAttribute- Parameters:
value- allowed object isJaxbPluralFetchMode
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccessin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Specified by:
setAccessin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessorin interfacePersistentAttribute- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessorin interfacePersistentAttribute- Parameters:
value- allowed object isString
-
getMappedBy
public String getMappedBy()
Gets the value of the mappedBy property.- Returns:
- possible object is
String
-
setMappedBy
public void setMappedBy(String value)
Sets the value of the mappedBy property.- Parameters:
value- allowed object isString
-
isOrphanRemoval
public Boolean isOrphanRemoval()
Gets the value of the orphanRemoval property.- Returns:
- possible object is
Boolean
-
-