org.hibernate.boot.jaxb.hbm.spi.JaxbHbmTimestampAttributeType 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.01.19 at 06:36:52 PM CET
//
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;
/**
*
* Optimistic locking attribute based on a (last-updated) timestamp.
*
*
* Java class for TimestampAttributeType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="TimestampAttributeType">
* <complexContent>
* <extension base="{http://www.hibernate.org/xsd/orm/hbm}BaseVersionAttributeType">
* <attribute name="source" type="{http://www.hibernate.org/xsd/orm/hbm}TimestampSourceEnum" default="vm" />
* <attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueTimestampEnum" default="null" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TimestampAttributeType")
public class JaxbHbmTimestampAttributeType
extends JaxbHbmBaseVersionAttributeType
implements Serializable, SingularAttributeInfo, ToolingHintContainer
{
@XmlAttribute(name = "source")
protected JaxbHbmTimestampSourceEnum source;
@XmlAttribute(name = "unsaved-value")
protected JaxbHbmUnsavedValueTimestampEnum unsavedValue;
/**
* Gets the value of the source property.
*
* @return
* possible object is
* {@link JaxbHbmTimestampSourceEnum }
*
*/
public JaxbHbmTimestampSourceEnum getSource() {
if (source == null) {
return JaxbHbmTimestampSourceEnum.VM;
} else {
return source;
}
}
/**
* Sets the value of the source property.
*
* @param value
* allowed object is
* {@link JaxbHbmTimestampSourceEnum }
*
*/
public void setSource(JaxbHbmTimestampSourceEnum value) {
this.source = value;
}
/**
* Gets the value of the unsavedValue property.
*
* @return
* possible object is
* {@link JaxbHbmUnsavedValueTimestampEnum }
*
*/
public JaxbHbmUnsavedValueTimestampEnum getUnsavedValue() {
if (unsavedValue == null) {
return JaxbHbmUnsavedValueTimestampEnum.NULL;
} else {
return unsavedValue;
}
}
/**
* Sets the value of the unsavedValue property.
*
* @param value
* allowed object is
* {@link JaxbHbmUnsavedValueTimestampEnum }
*
*/
public void setUnsavedValue(JaxbHbmUnsavedValueTimestampEnum value) {
this.unsavedValue = value;
}
}