Package org.hibernate.boot.jaxb.mapping
Class JaxbManyToOne
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbManyToOne
-
- All Implemented Interfaces:
Serializable
,AssociationAttribute
,FetchableAttribute
,PersistentAttribute
,ToOneAttribute
public class JaxbManyToOne extends Object implements Serializable, ToOneAttribute
See `@jakarta.persistence.ManyToOne` See `@org.hibernate.annotations.AttributeAccessor` See `@org.hibernate.annotations.OnDeleteJava class for many-to-one complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="many-to-one"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice> <sequence> <element name="join-column" type="{http://www.hibernate.org/xsd/orm/mapping}join-column" maxOccurs="unbounded" minOccurs="0"/> <element name="foreign-key" type="{http://www.hibernate.org/xsd/orm/mapping}foreign-key" minOccurs="0"/> </sequence> <element name="join-table" type="{http://www.hibernate.org/xsd/orm/mapping}join-table" minOccurs="0"/> </choice> <element name="cascade" type="{http://www.hibernate.org/xsd/orm/mapping}cascade-type" minOccurs="0"/> <element name="on-delete" type="{http://www.hibernate.org/xsd/orm/mapping}on-delete-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}singular-fetch-mode" /> <attribute name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <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="maps-id" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessType
access
protected String
attributeAccessor
protected JaxbCascadeType
cascade
protected FetchType
fetch
protected JaxbSingularFetchMode
fetchMode
protected JaxbForeignKey
foreignKey
protected Boolean
id
protected List<JaxbJoinColumn>
joinColumn
protected JaxbJoinTable
joinTable
protected String
mapsId
protected String
name
protected OnDeleteAction
onDelete
protected Boolean
optional
protected String
targetEntity
-
Constructor Summary
Constructors Constructor Description JaxbManyToOne()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessType
getAccess()
Gets the value of the access property.String
getAttributeAccessor()
Gets the value of the attributeAccessor property.JaxbCascadeType
getCascade()
Gets the value of the cascade property.FetchType
getFetch()
Gets the value of the fetch property.JaxbSingularFetchMode
getFetchMode()
Gets the value of the fetchMode property.JaxbForeignKey
getForeignKey()
Gets the value of the foreignKey property.List<JaxbJoinColumn>
getJoinColumn()
Gets the value of the joinColumn property.JaxbJoinTable
getJoinTable()
Gets the value of the joinTable property.String
getMapsId()
Gets the value of the mapsId property.String
getName()
Gets the value of the name property.OnDeleteAction
getOnDelete()
Gets the value of the onDelete property.String
getTargetEntity()
Gets the value of the targetEntity property.Boolean
isId()
Gets the value of the id property.Boolean
isOptional()
Gets the value of the optional property.void
setAccess(AccessType value)
Sets the value of the access property.void
setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.void
setCascade(JaxbCascadeType value)
Sets the value of the cascade property.void
setFetch(FetchType value)
Sets the value of the fetch property.void
setFetchMode(JaxbSingularFetchMode value)
Sets the value of the fetchMode property.void
setForeignKey(JaxbForeignKey value)
Sets the value of the foreignKey property.void
setId(Boolean value)
Sets the value of the id property.void
setJoinTable(JaxbJoinTable value)
Sets the value of the joinTable property.void
setMapsId(String value)
Sets the value of the mapsId property.void
setName(String value)
Sets the value of the name property.void
setOnDelete(OnDeleteAction value)
Sets the value of the onDelete property.void
setOptional(Boolean value)
Sets the value of the optional property.void
setTargetEntity(String value)
Sets the value of the targetEntity property.
-
-
-
Field Detail
-
joinColumn
protected List<JaxbJoinColumn> joinColumn
-
foreignKey
protected JaxbForeignKey foreignKey
-
joinTable
protected JaxbJoinTable joinTable
-
cascade
protected JaxbCascadeType cascade
-
onDelete
protected OnDeleteAction onDelete
-
name
protected String name
-
targetEntity
protected String targetEntity
-
fetch
protected FetchType fetch
-
fetchMode
protected JaxbSingularFetchMode fetchMode
-
optional
protected Boolean optional
-
access
protected AccessType access
-
attributeAccessor
protected String attributeAccessor
-
mapsId
protected String mapsId
-
id
protected Boolean id
-
-
Method Detail
-
getJoinColumn
public List<JaxbJoinColumn> getJoinColumn()
Gets the value of the joinColumn 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
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
JaxbJoinColumn
- Returns:
- The value of the joinColumn property.
-
getForeignKey
public JaxbForeignKey getForeignKey()
Gets the value of the foreignKey property.- Returns:
- possible object is
JaxbForeignKey
-
setForeignKey
public void setForeignKey(JaxbForeignKey value)
Sets the value of the foreignKey property.- Parameters:
value
- allowed object isJaxbForeignKey
-
getJoinTable
public JaxbJoinTable getJoinTable()
Gets the value of the joinTable property.- Specified by:
getJoinTable
in interfaceAssociationAttribute
- Returns:
- possible object is
JaxbJoinTable
-
setJoinTable
public void setJoinTable(JaxbJoinTable value)
Sets the value of the joinTable property.- Specified by:
setJoinTable
in interfaceAssociationAttribute
- Parameters:
value
- allowed object isJaxbJoinTable
-
getCascade
public JaxbCascadeType getCascade()
Gets the value of the cascade property.- Specified by:
getCascade
in interfaceAssociationAttribute
- Returns:
- possible object is
JaxbCascadeType
-
setCascade
public void setCascade(JaxbCascadeType value)
Sets the value of the cascade property.- Specified by:
setCascade
in interfaceAssociationAttribute
- Parameters:
value
- allowed object isJaxbCascadeType
-
getOnDelete
public OnDeleteAction getOnDelete()
Gets the value of the onDelete property.- Returns:
- possible object is
String
-
setOnDelete
public void setOnDelete(OnDeleteAction value)
Sets the value of the onDelete property.- Parameters:
value
- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Specified by:
getName
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Specified by:
setName
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getTargetEntity
public String getTargetEntity()
Gets the value of the targetEntity property.- Specified by:
getTargetEntity
in interfaceAssociationAttribute
- Returns:
- possible object is
String
-
setTargetEntity
public void setTargetEntity(String value)
Sets the value of the targetEntity property.- Specified by:
setTargetEntity
in interfaceAssociationAttribute
- Parameters:
value
- allowed object isString
-
getFetch
public FetchType getFetch()
Gets the value of the fetch property.- Specified by:
getFetch
in interfaceFetchableAttribute
- Returns:
- possible object is
String
-
setFetch
public void setFetch(FetchType value)
Sets the value of the fetch property.- Specified by:
setFetch
in interfaceFetchableAttribute
- Parameters:
value
- allowed object isString
-
getFetchMode
public JaxbSingularFetchMode getFetchMode()
Gets the value of the fetchMode property.- Specified by:
getFetchMode
in interfaceToOneAttribute
- Returns:
- possible object is
JaxbSingularFetchMode
-
setFetchMode
public void setFetchMode(JaxbSingularFetchMode value)
Sets the value of the fetchMode property.- Specified by:
setFetchMode
in interfaceToOneAttribute
- Parameters:
value
- allowed object isJaxbSingularFetchMode
-
isOptional
public Boolean isOptional()
Gets the value of the optional property.- Returns:
- possible object is
Boolean
-
setOptional
public void setOptional(Boolean value)
Sets the value of the optional property.- Parameters:
value
- allowed object isBoolean
-
getAccess
public AccessType getAccess()
Gets the value of the access property.- Specified by:
getAccess
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAccess
public void setAccess(AccessType value)
Sets the value of the access property.- Specified by:
setAccess
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getAttributeAccessor
public String getAttributeAccessor()
Gets the value of the attributeAccessor property.- Specified by:
getAttributeAccessor
in interfacePersistentAttribute
- Returns:
- possible object is
String
-
setAttributeAccessor
public void setAttributeAccessor(String value)
Sets the value of the attributeAccessor property.- Specified by:
setAttributeAccessor
in interfacePersistentAttribute
- Parameters:
value
- allowed object isString
-
getMapsId
public String getMapsId()
Gets the value of the mapsId property.- Returns:
- possible object is
String
-
setMapsId
public void setMapsId(String value)
Sets the value of the mapsId property.- Parameters:
value
- allowed object isString
-
-