Package org.apache.openejb.jee.jpa
Class GeneratedValue
- java.lang.Object
-
- org.apache.openejb.jee.jpa.GeneratedValue
-
public class GeneratedValue extends Object
Target({METHOD, FIELD}) @Retention(RUNTIME) public @interface GeneratedValue { GenerationType strategy() default AUTO; String generator() default ""; }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>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringgeneratorprotected GenerationTypestrategy
-
Constructor Summary
Constructors Constructor Description GeneratedValue()GeneratedValue(GenerationType strategy)GeneratedValue(GenerationType strategy, String generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGenerator()Gets the value of the generator property.GenerationTypegetStrategy()Gets the value of the strategy property.voidsetGenerator(String value)Sets the value of the generator property.voidsetStrategy(GenerationType value)Sets the value of the strategy property.
-
-
-
Field Detail
-
generator
protected String generator
-
strategy
protected GenerationType strategy
-
-
Constructor Detail
-
GeneratedValue
public GeneratedValue()
-
GeneratedValue
public GeneratedValue(GenerationType strategy)
-
GeneratedValue
public GeneratedValue(GenerationType strategy, String generator)
-
-
Method Detail
-
getGenerator
public String getGenerator()
Gets the value of the generator property.- Returns:
- possible object is
String
-
setGenerator
public void setGenerator(String value)
Sets the value of the generator property.- Parameters:
value- allowed object isString
-
getStrategy
public GenerationType getStrategy()
Gets the value of the strategy property.- Returns:
- possible object is
GenerationType
-
setStrategy
public void setStrategy(GenerationType value)
Sets the value of the strategy property.- Parameters:
value- allowed object isGenerationType
-
-