Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping

public Class JaxbNaturalId

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:natural-id
namespace:http://www.hibernate.org/xsd/orm/mapping
propOrder:cache, basic, manyToOne, embedded, any
Imports
java.io.Serializable, java.util.ArrayList, .List, jakarta.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType

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>

Field Summary

Modifier and TypeField and Description
protected List<JaxbHbmAnyMapping>
protected List<JaxbBasic>
protected JaxbCaching
protected List<JaxbEmbedded>
protected List<JaxbManyToOne>
protected Boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<JaxbHbmAnyMapping>

Returns:

The value of the any property.
getAny
()

Gets the value of the any property.

public List<JaxbBasic>

Returns:

The value of the basic property.
getBasic
()

Gets the value of the basic property.

public JaxbCaching

Returns:

possible object is JaxbCaching
getCache
()

Gets the value of the cache property.

public List<JaxbEmbedded>

Returns:

The value of the embedded property.
getEmbedded
()

Gets the value of the embedded property.

public List<JaxbManyToOne>

Returns:

The value of the manyToOne property.
getManyToOne
()

Gets the value of the manyToOne property.

public boolean

Returns:

possible object is Boolean
isMutable
()

Gets the value of the mutable property.

public void
setCache(JaxbCaching
allowed object is JaxbCaching
value
)

Sets the value of the cache property.

public void
setMutable(Boolean
allowed object is Boolean
value
)

Sets the value of the mutable property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anyback to summary
protected List<JaxbHbmAnyMapping> any
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
basicback to summary
protected List<JaxbBasic> basic
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
cacheback to summary
protected JaxbCaching cache
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
embeddedback to summary
protected List<JaxbEmbedded> embedded
Annotations
@XmlElement
namespace:http://www.hibernate.org/xsd/orm/mapping
manyToOneback to summary
protected List<JaxbManyToOne> manyToOne
Annotations
@XmlElement
name:many-to-one
namespace:http://www.hibernate.org/xsd/orm/mapping
mutableback to summary
protected Boolean mutable
Annotations
@XmlAttribute
name:mutable

Constructor Detail

JaxbNaturalIdback to summary
public JaxbNaturalId()

Method Detail

getAnyback to summary
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:List<JaxbHbmAnyMapping>

The value of the any property.

getBasicback to summary
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:List<JaxbBasic>

The value of the basic property.

getCacheback to summary
public JaxbCaching getCache()

Gets the value of the cache property.

Returns:JaxbCaching

possible object is JaxbCaching

getEmbeddedback to summary
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:List<JaxbEmbedded>

The value of the embedded property.

getManyToOneback to summary
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:List<JaxbManyToOne>

The value of the manyToOne property.

isMutableback to summary
public boolean isMutable()

Gets the value of the mutable property.

Returns:boolean

possible object is Boolean

setCacheback to summary
public void setCache(JaxbCaching value)

Sets the value of the cache property.

Parameters
value:JaxbCaching

allowed object is JaxbCaching

setMutableback to summary
public void setMutable(Boolean value)

Sets the value of the mutable property.

Parameters
value:Boolean

allowed object is Boolean