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:
  • Field Details

  • Constructor Details

    • JaxbNaturalId

      public JaxbNaturalId()
  • Method Details

    • 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 is JaxbCaching
    • 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

      Returns:
      The value of the basic property.
    • 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

      Returns:
      The value of the manyToOne property.
    • 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

      Returns:
      The value of the embedded property.
    • 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

      Returns:
      The value of the any property.
    • isMutable

      public boolean isMutable()
      Gets the value of the mutable property.
      Returns:
      possible object is Boolean
    • setMutable

      public void setMutable(Boolean value)
      Sets the value of the mutable property.
      Parameters:
      value - allowed object is Boolean