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

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

There is a newer version: 7.0.0.Alpha1
Show newest version
//
// 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 java.util.ArrayList;
import java.util.List;
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 an incrementing value.
 *             
 * 
 * 

Java class for VersionAttributeType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="VersionAttributeType">
 *   <complexContent>
 *     <extension base="{http://www.hibernate.org/xsd/orm/hbm}BaseVersionAttributeType">
 *       <sequence>
 *         <element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="integer" />
 *       <attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueVersionEnum" default="undefined" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "VersionAttributeType", propOrder = { "column" }) public class JaxbHbmVersionAttributeType extends JaxbHbmBaseVersionAttributeType implements Serializable, SingularAttributeInfo, ToolingHintContainer { protected List column; @XmlAttribute(name = "insert") protected Boolean insert; @XmlAttribute(name = "type") protected String type; @XmlAttribute(name = "unsaved-value") protected JaxbHbmUnsavedValueVersionEnum unsavedValue; /** * Gets the value of the column property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the column property. * *

* For example, to add a new item, do as follows: *

     *    getColumn().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JaxbHbmColumnType } * * */ public List getColumn() { if (column == null) { column = new ArrayList(); } return this.column; } /** * Gets the value of the insert property. * * @return * possible object is * {@link Boolean } * */ public Boolean isInsert() { return insert; } /** * Sets the value of the insert property. * * @param value * allowed object is * {@link Boolean } * */ public void setInsert(Boolean value) { this.insert = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { if (type == null) { return "integer"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the unsavedValue property. * * @return * possible object is * {@link JaxbHbmUnsavedValueVersionEnum } * */ public JaxbHbmUnsavedValueVersionEnum getUnsavedValue() { if (unsavedValue == null) { return JaxbHbmUnsavedValueVersionEnum.UNDEFINED; } else { return unsavedValue; } } /** * Sets the value of the unsavedValue property. * * @param value * allowed object is * {@link JaxbHbmUnsavedValueVersionEnum } * */ public void setUnsavedValue(JaxbHbmUnsavedValueVersionEnum value) { this.unsavedValue = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy