All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.boot.jaxb.hbm.spi.JaxbHbmTimestampAttributeType Maven / Gradle / Ivy

There is a newer version: 6.5.0.CR2
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.02.25 at 10:44:24 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy