Class JaxbNaturalIdImpl

java.lang.Object
org.hibernate.boot.jaxb.mapping.spi.JaxbNaturalIdImpl
All Implemented Interfaces:
Serializable, JaxbBaseAttributesContainer, JaxbNaturalId

public class JaxbNaturalIdImpl extends Object implements Serializable, JaxbNaturalId
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

    • JaxbNaturalIdImpl

      public JaxbNaturalIdImpl()
  • Method Details

    • getCaching

      public JaxbCachingImpl getCaching()
      Gets the value of the caching property.
      Specified by:
      getCaching in interface JaxbNaturalId
      Returns:
      possible object is JaxbCachingImpl
    • setCaching

      public void setCaching(JaxbCachingImpl value)
      Sets the value of the caching property.
      Parameters:
      value - allowed object is JaxbCachingImpl
    • getBasicAttributes

      public List<JaxbBasicImpl> getBasicAttributes()
      Gets the value of the basicAttributes 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 JAXB object. This is why there is not a set method for the basicAttributes property.

      For example, to add a new item, do as follows:

       getBasicAttributes().add(newItem);
       

      Objects of the following type(s) are allowed in the list JaxbBasicImpl

      Specified by:
      getBasicAttributes in interface JaxbBaseAttributesContainer
      Returns:
      The value of the basicAttributes property.
    • getManyToOneAttributes

      public List<JaxbManyToOneImpl> getManyToOneAttributes()
      Gets the value of the manyToOneAttributes 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 JAXB object. This is why there is not a set method for the manyToOneAttributes property.

      For example, to add a new item, do as follows:

       getManyToOneAttributes().add(newItem);
       

      Objects of the following type(s) are allowed in the list JaxbManyToOneImpl

      Specified by:
      getManyToOneAttributes in interface JaxbBaseAttributesContainer
      Returns:
      The value of the manyToOneAttributes property.
    • getEmbeddedAttributes

      public List<JaxbEmbeddedImpl> getEmbeddedAttributes()
      Gets the value of the embeddedAttributes 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 JAXB object. This is why there is not a set method for the embeddedAttributes property.

      For example, to add a new item, do as follows:

       getEmbeddedAttributes().add(newItem);
       

      Objects of the following type(s) are allowed in the list JaxbEmbeddedImpl

      Specified by:
      getEmbeddedAttributes in interface JaxbBaseAttributesContainer
      Returns:
      The value of the embeddedAttributes property.
    • getAnyMappingAttributes

      public List<JaxbAnyMappingImpl> getAnyMappingAttributes()
      Gets the value of the anyMappingAttributes 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 JAXB object. This is why there is not a set method for the anyMappingAttributes property.

      For example, to add a new item, do as follows:

       getAnyMappingAttributes().add(newItem);
       

      Objects of the following type(s) are allowed in the list JaxbAnyMappingImpl

      Specified by:
      getAnyMappingAttributes in interface JaxbBaseAttributesContainer
      Returns:
      The value of the anyMappingAttributes property.
    • isMutable

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

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