public class GeneratedValue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
generator |
protected GenerationType |
strategy |
| Constructor and Description |
|---|
GeneratedValue() |
GeneratedValue(GenerationType strategy) |
GeneratedValue(GenerationType strategy,
String generator) |
| 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 String generator
protected GenerationType strategy
public GeneratedValue()
public GeneratedValue(GenerationType strategy)
public GeneratedValue(GenerationType strategy, String generator)
public String getGenerator()
Stringpublic void setGenerator(String value)
value - allowed object is
Stringpublic GenerationType getStrategy()
GenerationTypepublic void setStrategy(GenerationType value)
value - allowed object is
GenerationTypeCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.