Package org.hibernate.generator.internal
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.
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:
-
Constructor Summary
ConstructorsConstructorDescriptionSourceGeneration(Source annotation, Member member, GeneratorCreationContext context) Deprecated.SourceGeneration(SourceType sourceType, Class<?> propertyType, GeneratorCreationContext context) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongenerate(SharedSessionContractImplementor session, Object owner, Object currentValue, EventType eventType) Deprecated.Generate a value.Deprecated.The event types for which this generator should be called to produce a new value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecutionMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, allowMutation, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimes
-
Constructor Details
-
SourceGeneration
Deprecated. -
SourceGeneration
public SourceGeneration(SourceType sourceType, Class<?> propertyType, GeneratorCreationContext context) Deprecated.
-
-
Method Details
-
getEventTypes
Deprecated.Description copied from interface:GeneratorThe event types for which this generator should be called to produce a new value.Identifier generators must return
EventTypeSets.INSERT_ONLY.- Specified by:
getEventTypesin interfaceGenerator- Returns:
EventTypeSets.ALL
-
Sourceandhbm.xmlare deprecated, though this implementation is instructive