Class JaxbHbmVersionAttributeType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmVersionAttributeType
- All Implemented Interfaces:
Serializable, AttributeMapping, SingularAttributeInfo, ToolingHintContainer
public class JaxbHbmVersionAttributeType
extends JaxbHbmBaseVersionAttributeType
implements Serializable, SingularAttributeInfo, ToolingHintContainer
Optimistic locking attribute based on an incrementing value.
<p>Java class for VersionAttributeType complex type</p>.
<p>The following schema fragment specifies the expected content contained within this class.</p>
<pre>{@code
<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>
}</pre>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JaxbHbmColumnType> protected Booleanprotected Stringprotected JaxbHbmUnsavedValueVersionEnumFields inherited from class JaxbHbmBaseVersionAttributeType
access, columnAttribute, generated, name, nodeFields inherited from class JaxbHbmToolingHintContainer
toolingHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the column property.getType()Gets the value of the type property.Gets the value of the unsavedValue property.isInsert()Gets the value of the insert property.voidSets the value of the insert property.voidSets the value of the type property.voidSets the value of the unsavedValue property.Methods inherited from class JaxbHbmBaseVersionAttributeType
getAccess, getColumnAttribute, getGenerated, getName, getNode, setAccess, setColumnAttribute, setGenerated, setName, setNodeMethods inherited from class JaxbHbmToolingHintContainer
getToolingHintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AttributeMapping
getAccess, getNameMethods inherited from interface ToolingHintContainer
getToolingHints
-
Field Details
-
column
-
insert
-
type
-
unsavedValue
-
-
Constructor Details
-
JaxbHbmVersionAttributeType
public JaxbHbmVersionAttributeType()
-
-
Method Details
-
getColumn
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 Jakarta XML Binding object. This is why there is not a
setmethod 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
JaxbHbmColumnType- Returns:
- The value of the column property.
-
isInsert
-
setInsert
-
getType
-
setType
-
getUnsavedValue
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueVersionEnum
-
setUnsavedValue
Sets the value of the unsavedValue property.- Parameters:
value- allowed object isJaxbHbmUnsavedValueVersionEnum
-