Class JaxbNaturalId
- java.lang.Object
-
- org.hibernate.boot.jaxb.mapping.JaxbNaturalId
-
- All Implemented Interfaces:
Serializable
public class JaxbNaturalId extends Object implements Serializable
See `@org.hibernate.annotations.NaturalId`Java class for natural-id complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="natural-id"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="cache" type="{http://www.hibernate.org/xsd/orm/mapping}caching" minOccurs="0"/> <element name="basic" type="{http://www.hibernate.org/xsd/orm/mapping}basic" maxOccurs="unbounded" minOccurs="0"/> <element name="many-to-one" type="{http://www.hibernate.org/xsd/orm/mapping}many-to-one" maxOccurs="unbounded" minOccurs="0"/> <element name="embedded" type="{http://www.hibernate.org/xsd/orm/mapping}embedded" maxOccurs="unbounded" minOccurs="0"/> <element name="any" type="{http://www.hibernate.org/xsd/orm/mapping}hbm-any-mapping" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="mutable" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> </restriction> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JaxbHbmAnyMapping>
any
protected List<JaxbBasic>
basic
protected JaxbCaching
cache
protected List<JaxbEmbedded>
embedded
protected List<JaxbManyToOne>
manyToOne
protected Boolean
mutable
-
Constructor Summary
Constructors Constructor Description JaxbNaturalId()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JaxbHbmAnyMapping>
getAny()
Gets the value of the any property.List<JaxbBasic>
getBasic()
Gets the value of the basic property.JaxbCaching
getCache()
Gets the value of the cache property.List<JaxbEmbedded>
getEmbedded()
Gets the value of the embedded property.List<JaxbManyToOne>
getManyToOne()
Gets the value of the manyToOne property.boolean
isMutable()
Gets the value of the mutable property.void
setCache(JaxbCaching value)
Sets the value of the cache property.void
setMutable(Boolean value)
Sets the value of the mutable property.
-
-
-
Field Detail
-
cache
protected JaxbCaching cache
-
manyToOne
protected List<JaxbManyToOne> manyToOne
-
embedded
protected List<JaxbEmbedded> embedded
-
any
protected List<JaxbHbmAnyMapping> any
-
mutable
protected Boolean mutable
-
-
Method Detail
-
getCache
public JaxbCaching getCache()
Gets the value of the cache property.- Returns:
- possible object is
JaxbCaching
-
setCache
public void setCache(JaxbCaching value)
Sets the value of the cache property.- Parameters:
value
- allowed object isJaxbCaching
-
getBasic
public List<JaxbBasic> getBasic()
Gets the value of the basic 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 basic property.For example, to add a new item, do as follows:
getBasic().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbBasic
-
getManyToOne
public List<JaxbManyToOne> getManyToOne()
Gets the value of the manyToOne 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 manyToOne property.For example, to add a new item, do as follows:
getManyToOne().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbManyToOne
-
getEmbedded
public List<JaxbEmbedded> getEmbedded()
Gets the value of the embedded 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 embedded property.For example, to add a new item, do as follows:
getEmbedded().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbEmbedded
-
getAny
public List<JaxbHbmAnyMapping> getAny()
Gets the value of the any 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 any property.For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list
JaxbHbmAnyMapping
-
isMutable
public boolean isMutable()
Gets the value of the mutable property.- Returns:
- possible object is
Boolean
-
-