public class GeneratedValue
extends java.lang.Object
Java class for generated-value complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="generated-value">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="strategy" type="{http://java.sun.com/xml/ns/persistence/orm}generation-type" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
generator |
protected GenerationType |
strategy |
| Constructor and Description |
|---|
GeneratedValue() |
GeneratedValue(GenerationType strategy) |
GeneratedValue(GenerationType strategy,
java.lang.String generator) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGenerator()
Gets the value of the generator property.
|
GenerationType |
getStrategy()
Gets the value of the strategy property.
|
void |
setGenerator(java.lang.String value)
Sets the value of the generator property.
|
void |
setStrategy(GenerationType value)
Sets the value of the strategy property.
|
protected java.lang.String generator
protected GenerationType strategy
public GeneratedValue()
public GeneratedValue(GenerationType strategy)
public GeneratedValue(GenerationType strategy, java.lang.String generator)
public java.lang.String getGenerator()
Stringpublic void setGenerator(java.lang.String value)
value - allowed object is
Stringpublic GenerationType getStrategy()
GenerationTypepublic void setStrategy(GenerationType value)
value - allowed object is
GenerationType