Class CounterGeneration
java.lang.Object
ch.tocco.nice2.businessunit.impl.counter.CounterGeneration
- All Implemented Interfaces:
Serializable,org.hibernate.generator.AnnotationBasedGenerator<Counter>,org.hibernate.generator.BeforeExecutionGenerator,org.hibernate.generator.Generator
public class CounterGeneration
extends Object
implements org.hibernate.generator.BeforeExecutionGenerator, org.hibernate.generator.AnnotationBasedGenerator<Counter>
Creates counters based on 'Counter' table for fields of type 'counter'.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner, Object currentValue, org.hibernate.generator.EventType eventType) EnumSet<org.hibernate.generator.EventType> voidinitialize(Counter annotation, Member member, org.hibernate.generator.GeneratorCreationContext generatorCreationContext) 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
-
CounterGeneration
public CounterGeneration()
-
-
Method Details
-
initialize
public void initialize(Counter annotation, Member member, org.hibernate.generator.GeneratorCreationContext generatorCreationContext) - Specified by:
initializein interfaceorg.hibernate.generator.AnnotationBasedGenerator<Counter>
-
getEventTypes
- Specified by:
getEventTypesin interfaceorg.hibernate.generator.Generator
-