public class EmbeddedId extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface EmbeddedId {}
<p>Java class for embedded-id complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <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> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected AccessType |
access |
protected List<AttributeOverride> |
attributeOverride |
protected String |
name |
| Constructor and Description |
|---|
EmbeddedId() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
List<AttributeOverride> |
getAttributeOverride()
Gets the value of the attributeOverride property.
|
String |
getName()
Gets the value of the name property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected List<AttributeOverride> attributeOverride
protected String name
protected AccessType access
public List<AttributeOverride> getAttributeOverride()
Gets the value of the attributeOverride property.
<p> 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 <CODE>set</CODE> method for the attributeOverride property.
<p> For example, to add a new item, do as follows: <pre> getAttributeOverride().add(newItem); </pre>
<p>
Objects of the following type(s) are allowed in the list
AttributeOverride
public String getName()
Gets the value of the name property.
Stringpublic void setName(String value)
Sets the value of the name 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
AccessTypeCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.