public class GeneratedValue extends Object
@Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface GeneratedValue { GenerationType strategy() default AUTO; String generator() default ""; }
<p>Java class for generated-value complex type.
<p>The following schema fragment specifies the expected content contained within this class.
<pre> <complexType name="generated-value"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <attribute name="strategy" type="{http://xmlns.jcp.org/xml/ns/persistence/orm}generation-type" /> <attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType> </pre>
| Modifier and Type | Field and Description |
|---|---|
protected String |
generator |
protected GenerationType |
strategy |
| Constructor and Description |
|---|
GeneratedValue() |
| Modifier and Type | Method and Description |
|---|---|
String |
getGenerator()
Gets the value of the generator property.
|
GenerationType |
getStrategy()
Gets the value of the strategy property.
|
void |
setGenerator(String value)
Sets the value of the generator property.
|
void |
setStrategy(GenerationType value)
Sets the value of the strategy property.
|
protected GenerationType strategy
protected String generator
public GenerationType getStrategy()
Gets the value of the strategy property.
GenerationTypepublic void setStrategy(GenerationType value)
Sets the value of the strategy property.
value - allowed object is
GenerationTypepublic String getGenerator()
Gets the value of the generator property.
StringCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.