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

public Class JaxbEmbeddedId

extends Object
implements Serializable, PersistentAttribute
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.PersistentAttribute, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:embedded-id
namespace:http://www.hibernate.org/xsd/orm/mapping
propOrder:attributeOverride
Imports
java.io.Serializable, java.util.ArrayList, .List, jakarta.persistence.AccessType, jakarta.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType, jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter

See `@jakarta.persistence.EmbeddedId` See `@org.hibernate.annotations.AttributeAccessor`

Java class for embedded-id complex type.

The following schema fragment specifies the expected content contained within this class.

<complexType name="embedded-id">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="attribute-override" type="{http://www.hibernate.org/xsd/orm/mapping}attribute-override" maxOccurs="unbounded" minOccurs="0"/>
      </sequence>
      <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
      <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" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected AccessType
protected String
protected List<JaxbAttributeOverride>
protected String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AccessType

Returns:

possible object is String
getAccess
()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getAccess.

Gets the value of the access property.
public String

Returns:

possible object is String
getAttributeAccessor
()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getAttributeAccessor.

Gets the value of the attributeAccessor property.
public List<JaxbAttributeOverride>

Returns:

The value of the attributeOverride property.
getAttributeOverride
()

Gets the value of the attributeOverride property.

public String

Returns:

possible object is String
getName
()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getName.

Gets the value of the name property.
public void
setAccess(AccessType
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setAccess.

Sets the value of the access property.
public void
setAttributeAccessor(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setAttributeAccessor.

Sets the value of the attributeAccessor property.
public void
setName(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setName.

Sets the value of the name property.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessback to summary
protected AccessType access
Annotations
@XmlAttribute
name:access
@XmlJavaTypeAdapter:Adapter1
attributeAccessorback to summary
protected String attributeAccessor
Annotations
@XmlAttribute
name:attribute-accessor
attributeOverrideback to summary
protected List<JaxbAttributeOverride> attributeOverride
Annotations
@XmlElement
name:attribute-override
namespace:http://www.hibernate.org/xsd/orm/mapping
nameback to summary
protected String name
Annotations
@XmlAttribute
name:name
required:true

Constructor Detail

JaxbEmbeddedIdback to summary
public JaxbEmbeddedId()

Method Detail

getAccessback to summary
public AccessType getAccess()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getAccess.

Gets the value of the access property.

Returns:AccessType

possible object is String

getAttributeAccessorback to summary
public String getAttributeAccessor()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getAttributeAccessor.

Gets the value of the attributeAccessor property.

Returns:String

possible object is String

getAttributeOverrideback to summary
public List<JaxbAttributeOverride> getAttributeOverride()

Gets the value of the attributeOverride 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 attributeOverride property.

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

   getAttributeOverride().add(newItem);

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

Returns:List<JaxbAttributeOverride>

The value of the attributeOverride property.

getNameback to summary
public String getName()

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.getName.

Gets the value of the name property.

Returns:String

possible object is String

setAccessback to summary
public void setAccess(AccessType value)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setAccess.

Sets the value of the access property.

Parameters
value:AccessType

allowed object is String

setAttributeAccessorback to summary
public void setAttributeAccessor(String value)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setAttributeAccessor.

Sets the value of the attributeAccessor property.

Parameters
value:String

allowed object is String

setNameback to summary
public void setName(String value)

Implements org.hibernate.boot.jaxb.mapping.PersistentAttribute.setName.

Sets the value of the name property.

Parameters
value:String

allowed object is String