Package org.hibernate.generator
This package defines an abstraction over all kinds of automatic
value generation, including id generation and version number
generation. The root abstraction is the interface
Generator
.-
Interface Summary Interface Description AnnotationBasedGenerator<A extends Annotation> AGenerator
which receives parameters from a custom generator annotation or id generator annotation.BeforeExecutionGenerator A generator that is called to produce a value just before a row is written to the database.Generator Describes the generation of values of a certain field or property of an entity.GeneratorCreationContext Access to information useful during Generator creation and initialization.OnExecutionGenerator A generator which produces a new value by actually going ahead and writing a row to the database, then retrieving the value which was generated by the database itself as a side effect of the SQLinsert
orupdate
statement which wrote the row. -
Class Summary Class Description EventTypeSets For convenience, enumerates the possible combinations ofEventType
. -
Enum Summary Enum Description EventType Enumerates event types that can result in generation of a new value.