java.lang.Object | |
↳ | org.hibernate.engine.VersionValue |
A strategy for determining if a version value is an version of a new transient instance or a previously persistent transient instance. The strategy is determined by the unsaved-value attribute in the mapping file.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NEGATIVE | Assume the transient instance is newly instantiated if the version is negative, otherwise assume it is a detached instance. | ||||||||||
NULL | Assume the transient instance is newly instantiated if the version is null, otherwise assume it is a detached instance. | ||||||||||
UNDEFINED | Assume the transient instance is newly instantiated if the version is null, otherwise defer to the identifier unsaved-value. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Assume the transient instance is newly instantiated if
its version is null or equal to value
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Does the given version belong to a new instance?
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Assume the transient instance is newly instantiated if the version is negative, otherwise assume it is a detached instance.
Assume the transient instance is newly instantiated if the version is null, otherwise assume it is a detached instance.
Assume the transient instance is newly instantiated if the version is null, otherwise defer to the identifier unsaved-value.
Assume the transient instance is newly instantiated if its version is null or equal to value
value | value to compare to |
---|
Does the given version belong to a new instance?
version | version to check |
---|
MappingException |
---|