@Target({TYPE}) @Retention(RUNTIME)
public @interface Embeddable {}
public class Embeddable extends Object
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 {}
<p>Java class for embeddable complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected AccessType |
access |
protected EmbeddableAttributes |
attributes |
protected String |
clazz |
protected String |
description |
protected Boolean |
metadataComplete |
| Constructor and Description |
|---|
Embeddable() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
EmbeddableAttributes |
getAttributes()
Gets the value of the attributes property.
|
String |
getClazz()
Gets the value of the clazz property.
|
String |
getDescription()
Gets the value of the description property.
|
Boolean |
isMetadataComplete()
Gets the value of the metadataComplete property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setAttributes(EmbeddableAttributes value)
Sets the value of the attributes property.
|
void |
setClazz(String value)
Sets the value of the clazz property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setMetadataComplete(Boolean value)
Sets the value of the metadataComplete property.
|
protected String description
protected EmbeddableAttributes attributes
protected String clazz
protected AccessType access
protected Boolean metadataComplete
public String getDescription()
Gets the value of the description property.
Stringpublic void setDescription(String value)
Sets the value of the description property.
value - allowed object is
Stringpublic EmbeddableAttributes getAttributes()
Gets the value of the attributes property.
EmbeddableAttributespublic void setAttributes(EmbeddableAttributes value)
Sets the value of the attributes property.
value - allowed object is
EmbeddableAttributespublic String getClazz()
Gets the value of the clazz property.
Stringpublic void setClazz(String value)
Sets the value of the clazz property.
value - allowed object is
Stringpublic AccessType getAccess()
Gets the value of the access property.
AccessTypepublic void setAccess(AccessType value)
Sets the value of the access property.
value - allowed object is
AccessTypepublic Boolean isMetadataComplete()
Gets the value of the metadataComplete property.
BooleanCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.