Class IdentifierValue

java.lang.Object
org.hibernate.engine.IdentifierValue

public class IdentifierValue extends Object
A strategy for determining if an identifier value is an identifier of a new transient instance or a previously persistent transient instance. The strategy is determined by the unsaved-value attribute in the mapping file.
  • Field Details

    • ANY

      public static final IdentifierValue ANY
      Always assume the transient instance is newly instantiated
    • NONE

      public static final IdentifierValue NONE
      Never assume the transient instance is newly instantiated
    • NULL

      public static final IdentifierValue NULL
      Assume the transient instance is newly instantiated if the identifier is null.
    • UNDEFINED

      public static final IdentifierValue UNDEFINED
      Assume nothing.
  • Constructor Details

    • IdentifierValue

      protected IdentifierValue()
    • IdentifierValue

      public IdentifierValue(Serializable value)
      Assume the transient instance is newly instantiated if its identifier is null or equal to value
  • Method Details