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

public Class JaxbGeneratedValue

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

See `@jakarta.persistence.GeneratedValue`

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://www.hibernate.org/xsd/orm/mapping}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:Adapter10

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