接口的使用
org.hibernate.type.VersionType
-
使用VersionType的程序包 程序包 说明 org.hibernate This package defines the central Hibernate APIs.org.hibernate.engine.internal Support for many of the internal workings of Hibernate.org.hibernate.param org.hibernate.persister.entity This package abstracts persistence mechanisms for entities, and defines the Hibernate runtime metamodel.org.hibernate.type A Hibernate Type is a strategy for mapping a Java property type to a JDBC type or types. -
-
org.hibernate中VersionType的使用
参数类型为VersionType的org.hibernate中的方法 修饰符和类型 方法 说明 abstract booleanReplicationMode. shouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType versionType)Determine whether the mode dictates that the data being replicated should overwrite the data found. -
org.hibernate.engine.internal中VersionType的使用
参数类型为VersionType的org.hibernate.engine.internal中的方法 修饰符和类型 方法 说明 static VersionValueUnsavedValueFactory. getUnsavedVersionValue(String versionUnsavedValue, Getter versionGetter, VersionType versionType, Constructor constructor)Return an IdentifierValue for the specified unsaved-value.static ObjectVersioning. increment(Object version, VersionType versionType, SharedSessionContractImplementor session)Generate the next increment in the optimistic locking value according theVersionTypecontract for the version property.static booleanVersioning. seedVersion(Object[] fields, int versionProperty, VersionType versionType, SharedSessionContractImplementor session)Create an initial optimistic locking value according theVersionTypecontract for the version property if required and inject it into the snapshot state. -
org.hibernate.param中VersionType的使用
参数类型为VersionType的org.hibernate.param中的构造器 构造器 说明 VersionTypeSeedParameterSpecification(VersionType type)Constructs a version seed parameter bind specification. -
org.hibernate.persister.entity中VersionType的使用
返回VersionType的org.hibernate.persister.entity中的方法 修饰符和类型 方法 说明 VersionTypeAbstractEntityPersister. getVersionType()VersionTypeEntityPersister. getVersionType()IfEntityPersister.isVersioned(), then what is the type of the property holding the locking value. -
org.hibernate.type中VersionType的使用
实现VersionType的org.hibernate.type中的类 修饰符和类型 类 说明 classBinaryTypeA type that maps between aVARBINARYandbyte[]Implementation of theVersionTypeinterface should be considered deprecated.classByteTypeclassCalendarTypeclassCustomTypeclassDbTimestampTypedbtimestamp: An extension ofTimestampTypewhich maps to the database's current timestamp, rather than the jvm's current timestamp.classInstantTypeA type that maps betweenTIMESTAMPandLocalDateTime.classIntegerTypeA type that maps betweenINTEGERand @link Integer}classLocalDateTimeTypeA type that maps betweenTIMESTAMPandLocalDateTime.classLongTypeclassOffsetDateTimeTypeclassRowVersionTypeA type that maps between aVARBINARYandbyte[]specifically for entity versions/timestamps.classShortTypeclassTimestampTypeclassZonedDateTimeType
-