public class Id extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface Id {}
<p>Java class for id complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="id"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="column" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}column" minOccurs="0"/> <element name="generated-value" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}generated-value" minOccurs="0"/> <element name="temporal" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}temporal" minOccurs="0"/> <element name="table-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}table-generator" minOccurs="0"/> <element name="sequence-generator" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}sequence-generator" 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 Column |
column |
protected GeneratedValue |
generatedValue |
protected String |
name |
protected SequenceGenerator |
sequenceGenerator |
protected TableGenerator |
tableGenerator |
protected TemporalType |
temporal |
| Constructor and Description |
|---|
Id() |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccess()
Gets the value of the access property.
|
Column |
getColumn()
Gets the value of the column property.
|
GeneratedValue |
getGeneratedValue()
Gets the value of the generatedValue property.
|
String |
getName()
Gets the value of the name property.
|
SequenceGenerator |
getSequenceGenerator()
Gets the value of the sequenceGenerator property.
|
TableGenerator |
getTableGenerator()
Gets the value of the tableGenerator property.
|
TemporalType |
getTemporal()
Gets the value of the temporal property.
|
void |
setAccess(AccessType value)
Sets the value of the access property.
|
void |
setColumn(Column value)
Sets the value of the column property.
|
void |
setGeneratedValue(GeneratedValue value)
Sets the value of the generatedValue property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.
|
void |
setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.
|
void |
setTemporal(TemporalType value)
Sets the value of the temporal property.
|
protected Column column
protected GeneratedValue generatedValue
protected TemporalType temporal
protected TableGenerator tableGenerator
protected SequenceGenerator sequenceGenerator
protected String name
protected AccessType access
public Column getColumn()
Gets the value of the column property.
Columnpublic void setColumn(Column value)
Sets the value of the column property.
value - allowed object is
Columnpublic GeneratedValue getGeneratedValue()
Gets the value of the generatedValue property.
GeneratedValuepublic void setGeneratedValue(GeneratedValue value)
Sets the value of the generatedValue property.
value - allowed object is
GeneratedValuepublic TemporalType getTemporal()
Gets the value of the temporal property.
TemporalTypepublic void setTemporal(TemporalType value)
Sets the value of the temporal property.
value - allowed object is
TemporalTypepublic TableGenerator getTableGenerator()
Gets the value of the tableGenerator property.
TableGeneratorpublic void setTableGenerator(TableGenerator value)
Sets the value of the tableGenerator property.
value - allowed object is
TableGeneratorpublic SequenceGenerator getSequenceGenerator()
Gets the value of the sequenceGenerator property.
SequenceGeneratorpublic void setSequenceGenerator(SequenceGenerator value)
Sets the value of the sequenceGenerator property.
value - allowed object is
SequenceGeneratorpublic 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.