Class SourceGeneration

java.lang.Object
org.hibernate.generator.internal.SourceGeneration
All Implemented Interfaces:
Serializable, BeforeExecutionGenerator, Generator

@Deprecated(since="6.2") @Internal public class SourceGeneration extends Object implements BeforeExecutionGenerator
Deprecated.
because both Source and hbm.xml are deprecated, though this implementation is instructive
Value generation strategy using the query Dialect.getCurrentTimestampSelectString(). This is a select that occurs before the insert or update, whereas with CurrentTimestampGeneration the select happens afterward.

Underlies the @Source annotation, and <timestamp source="db"/> in hbm.xml mapping documents.

See Also: