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

public Class JaxbEmbeddedId

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

@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface EmbeddedId {}

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://xmlns.jcp.org/xml/ns/persistence/orm}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://xmlns.jcp.org/xml/ns/persistence/orm}access-type" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected AccessType
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.spi.PersistentAttribute.getAccess.

Gets the value of the access property.
public List<JaxbAttributeOverride>
getAttributeOverride()

Gets the value of the attributeOverride property.

public String

Returns:

possible object is String
getName
()

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

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

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

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

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
attributeOverrideback to summary
protected List<JaxbAttributeOverride> attributeOverride
Annotations
@XmlElement
name:attribute-override
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
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.spi.PersistentAttribute.getAccess.

Gets the value of the access property.

Returns:AccessType

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 JAXB 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

getNameback to summary
public String getName()

Implements org.hibernate.boot.jaxb.mapping.spi.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.spi.PersistentAttribute.setAccess.

Sets the value of the access property.

Parameters
value:AccessType

allowed object is String

setNameback to summary
public void setName(String value)

Sets the value of the name property.

Parameters
value:String

allowed object is String