org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.1
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.10.08 at 09:56:04 AM BST
//
package org.hibernate.boot.jaxb.hbm.spi;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.hibernate.tuple.GenerationTiming;
/**
*
* Type definition that acts as a base for concrete definitions of mapped
* attributes that can function as the basis of optimistic locking.
*
*
* Java class for BaseVersionAttributeType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="BaseVersionAttributeType">
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer">
* <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="generated" type="{http://www.hibernate.org/xsd/orm/hbm}GenerationTimingVersionEnum" default="never" />
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="node" type="{http://www.w3.org/2001/XMLSchema}string" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BaseVersionAttributeType")
public abstract class JaxbHbmBaseVersionAttributeType
extends JaxbHbmToolingHintContainer
implements Serializable
{
@XmlAttribute(name = "access")
protected String access;
@XmlAttribute(name = "column")
protected String columnAttribute;
@XmlAttribute(name = "generated")
@XmlJavaTypeAdapter(Adapter7 .class)
protected GenerationTiming generated;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "node")
protected String node;
/**
* Gets the value of the access property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccess() {
return access;
}
/**
* Sets the value of the access property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccess(String value) {
this.access = value;
}
/**
* Gets the value of the columnAttribute property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getColumnAttribute() {
return columnAttribute;
}
/**
* Sets the value of the columnAttribute property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setColumnAttribute(String value) {
this.columnAttribute = value;
}
/**
* Gets the value of the generated property.
*
* @return
* possible object is
* {@link String }
*
*/
public GenerationTiming getGenerated() {
if (generated == null) {
return new Adapter7().unmarshal("never");
} else {
return generated;
}
}
/**
* Sets the value of the generated property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGenerated(GenerationTiming value) {
this.generated = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the node property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNode() {
return node;
}
/**
* Sets the value of the node property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNode(String value) {
this.node = value;
}
}