Top Description Fields Constructors Methods
org.hibernate.boot.jaxb.mapping.spi

public Class JaxbGeneratedValue

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@XmlAccessorType:FIELD
@XmlType
name:generated-value
namespace:http://xmlns.jcp.org/xml/ns/persistence/orm
Imports
java.io.Serializable, javax.persistence.GenerationType, javax.xml.bind.annotation.XmlAccessType, .XmlAccessorType, .XmlAttribute, .XmlType, javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter

@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="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>

Field Summary

Modifier and TypeField and Description
protected String
protected GenerationType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

possible object is String
getGenerator
()

Gets the value of the generator property.

public GenerationType

Returns:

possible object is String
getStrategy
()

Gets the value of the strategy property.

public void
setGenerator(String
allowed object is String
value
)

Sets the value of the generator property.

public void
setStrategy(GenerationType
allowed object is String
value
)

Sets the value of the strategy property.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

generatorback to summary
protected String generator
Annotations
@XmlAttribute
name:generator
strategyback to summary
protected GenerationType strategy
Annotations
@XmlAttribute
name:strategy
@XmlJavaTypeAdapter:Adapter6

Constructor Detail

JaxbGeneratedValueback to summary
public JaxbGeneratedValue()

Method Detail

getGeneratorback to summary
public String getGenerator()

Gets the value of the generator property.

Returns:String

possible object is String

getStrategyback to summary
public GenerationType getStrategy()

Gets the value of the strategy property.

Returns:GenerationType

possible object is String

setGeneratorback to summary
public void setGenerator(String value)

Sets the value of the generator property.

Parameters
value:String

allowed object is String

setStrategyback to summary
public void setStrategy(GenerationType value)

Sets the value of the strategy property.

Parameters
value:GenerationType

allowed object is String