Package org.hibernate.annotations
Enum Class GenerationTime
- All Implemented Interfaces:
Serializable
,Comparable<GenerationTime>
,Constable
Deprecated.
Represents a class of events involving interaction with the database
that causes generation of a new value. Intended for use with the
Generated
and CurrentTimestamp
annotations.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Indicates that a new value is generated on insert and on update.Deprecated.Indicates that a new value is generated on insert.Deprecated.Indicates that a value is never generated.Deprecated.Indicates that a new value is generated on update. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated, for removal: This API element is subject to removal in a future version.Needed for backwards compatibility until the deprecated, legacy generation stuff can be removedstatic GenerationTime
Deprecated.Returns the enum constant of this class with the specified name.static GenerationTime[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Deprecated.Indicates that a value is never generated. -
INSERT
Deprecated.Indicates that a new value is generated on insert. -
UPDATE
Deprecated.Indicates that a new value is generated on update.- Since:
- 6.2
-
ALWAYS
Deprecated.Indicates that a new value is generated on insert and on update.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
eventTypes
Deprecated. -
getEquivalent
Deprecated, for removal: This API element is subject to removal in a future version.Needed for backwards compatibility until the deprecated, legacy generation stuff can be removed- Returns:
- the equivalent instance of
GenerationTiming
-
EventType
andEventTypeSets
instead