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

public Class JaxbEmbeddable

extends Object
implements Serializable, ManagedType
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.jaxb.mapping.spi.ManagedType, java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:embeddable
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
propOrder:description, attributes
Imports
java.io.Serializable, javax.persistence.AccessType, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlElement, .XmlType, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter

Defines the settings and mappings for embeddable objects. Is allowed to be sparsely populated and used in conjunction with the annotations. Alternatively, the metadata-complete attribute can be used to indicate that no annotations are to be processed in the class. If this is the case then the defaulting rules will be recursively applied. @Target({TYPE}) @Retention(RUNTIME) public @interface Embeddable {}

Java class for embeddable complex type.

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

<complexType name="embeddable">
  <complexContent>
    <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      <sequence>
        <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
        <element name="attributes" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}embeddable-attributes" minOccurs="0"/>
      </sequence>
      <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
      <attribute name="access" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}access-type" />
      <attribute name="metadata-complete" type="{http://www.w3.org/2001/XMLSchema}boolean" />
    </restriction>
  </complexContent>
</complexType>

Field Summary

Modifier and TypeField and Description
protected AccessType
protected JaxbEmbeddableAttributes
protected String
protected String
protected Boolean

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.ManagedType.getAccess.

Gets the value of the access property.
public JaxbEmbeddableAttributes

Returns:

possible object is JaxbEmbeddableAttributes
getAttributes
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getAttributes.

Gets the value of the attributes property.
public String

Returns:

possible object is String
getClazz
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getClazz.

Gets the value of the clazz property.
public String

Returns:

possible object is String
getDescription
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getDescription.

Gets the value of the description property.
public Boolean

Returns:

possible object is Boolean
isMetadataComplete
()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.isMetadataComplete.

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

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

Sets the value of the access property.
public void
setAttributes(JaxbEmbeddableAttributes
allowed object is JaxbEmbeddableAttributes
value
)

Sets the value of the attributes property.

public void
setClazz(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setClazz.

Sets the value of the clazz property.
public void
setDescription(String
allowed object is String
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setDescription.

Sets the value of the description property.
public void
setMetadataComplete(Boolean
allowed object is Boolean
value
)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setMetadataComplete.

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

Field Detail

accessback to summary
protected AccessType access
Annotations
@XmlAttribute
name:access
@XmlJavaTypeAdapter:Adapter1
attributesback to summary
protected JaxbEmbeddableAttributes attributes
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
clazzback to summary
protected String clazz
Annotations
@XmlAttribute
name:class
required:true
descriptionback to summary
protected String description
Annotations
@XmlElement
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
metadataCompleteback to summary
protected Boolean metadataComplete
Annotations
@XmlAttribute
name:metadata-complete

Constructor Detail

JaxbEmbeddableback to summary
public JaxbEmbeddable()

Method Detail

getAccessback to summary
public AccessType getAccess()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getAccess.

Gets the value of the access property.

Returns:AccessType

possible object is String

getAttributesback to summary
public JaxbEmbeddableAttributes getAttributes()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getAttributes.

Gets the value of the attributes property.

Returns:JaxbEmbeddableAttributes

possible object is JaxbEmbeddableAttributes

getClazzback to summary
public String getClazz()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getClazz.

Gets the value of the clazz property.

Returns:String

possible object is String

getDescriptionback to summary
public String getDescription()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.getDescription.

Gets the value of the description property.

Returns:String

possible object is String

isMetadataCompleteback to summary
public Boolean isMetadataComplete()

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.isMetadataComplete.

Gets the value of the metadataComplete property.

Returns:Boolean

possible object is Boolean

setAccessback to summary
public void setAccess(AccessType value)

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

Sets the value of the access property.

Parameters
value:AccessType

allowed object is String

setAttributesback to summary
public void setAttributes(JaxbEmbeddableAttributes value)

Sets the value of the attributes property.

Parameters
value:JaxbEmbeddableAttributes

allowed object is JaxbEmbeddableAttributes

setClazzback to summary
public void setClazz(String value)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setClazz.

Sets the value of the clazz property.

Parameters
value:String

allowed object is String

setDescriptionback to summary
public void setDescription(String value)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setDescription.

Sets the value of the description property.

Parameters
value:String

allowed object is String

setMetadataCompleteback to summary
public void setMetadataComplete(Boolean value)

Implements org.hibernate.boot.jaxb.mapping.spi.ManagedType.setMetadataComplete.

Sets the value of the metadataComplete property.

Parameters
value:Boolean

allowed object is Boolean