Package org.hibernate.tuple.entity
Class VersionProperty
- java.lang.Object
-
- org.hibernate.tuple.AbstractAttribute
-
- org.hibernate.tuple.AbstractNonIdentifierAttribute
-
- org.hibernate.tuple.entity.VersionProperty
-
- All Implemented Interfaces:
AttributeDefinition
,Attribute
,NonIdentifierAttribute
,Property
public class VersionProperty extends AbstractNonIdentifierAttribute
Represents a version property within the Hibernate runtime-metamodel.
-
-
Constructor Summary
Constructors Constructor Description VersionProperty(EntityPersister source, SessionFactoryImplementor sessionFactory, int attributeNumber, java.lang.String attributeName, Type attributeType, BaselineAttributeInformation attributeInformation, VersionValue unsavedValue)
Constructs VersionProperty instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionValue
getUnsavedValue()
-
Methods inherited from class org.hibernate.tuple.AbstractNonIdentifierAttribute
attributeNumber, getCascadeStyle, getFetchMode, getSource, getValueGenerationStrategy, isDirtyCheckable, isDirtyCheckable, isInsertable, isLazy, isNullable, isUpdateable, isVersionable, loggableMetadata, sessionFactory, source, toString
-
Methods inherited from class org.hibernate.tuple.AbstractAttribute
getName, getNode, getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.persister.walking.spi.AttributeDefinition
getName, getType
-
-
-
-
Constructor Detail
-
VersionProperty
public VersionProperty(EntityPersister source, SessionFactoryImplementor sessionFactory, int attributeNumber, java.lang.String attributeName, Type attributeType, BaselineAttributeInformation attributeInformation, VersionValue unsavedValue)
Constructs VersionProperty instances.- Parameters:
source
- Reference back to the source of this attribute (the persister)sessionFactory
- The session factory this is part of.attributeNumber
- The attribute number within thjeattributeName
- The name by which the property can be referenced within its owner.attributeType
- The Hibernate Type of this property.attributeInformation
- The basic attribute information.unsavedValue
- The value which, if found as the value of this (i.e., the version) property, represents new (i.e., un-saved) instances of the owning entity.
-
-
Method Detail
-
getUnsavedValue
public VersionValue getUnsavedValue()
-
-