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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanControls whether a generated counter field may be manually changed on events which do not trigger value generation (i.e.generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner, Object currentValue, org.hibernate.generator.EventType eventType) EnumSet<org.hibernate.generator.EventType> voidinitialize(Counter annotation, org.hibernate.generator.GeneratorCreationContext generatorCreationContext) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.generator.AnnotationBasedGenerator
initializeMethods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecutionMethods inherited from interface org.hibernate.generator.Generator
allowAssignedIdentifiers, generatedBeforeExecution, generatedOnExecution, generatesOnForceIncrement, generatesOnInsert, generatesOnUpdate, generatesSometimes, getGeneratedType
-
Field Details
-
ALLOW_MUTATION_SETTING
- See Also:
-
-
Constructor Details
-
CounterGeneration
public CounterGeneration()
-
-
Method Details
-
initialize
-
getEventTypes
- Specified by:
getEventTypesin interfaceorg.hibernate.generator.Generator
-
allowMutation
public boolean allowMutation()Controls whether a generated counter field may be manually changed on events which do not trigger value generation (i.e. updates, since counters are only generated onEventType.INSERT). Some customers manually edit counter values. In such a case `nice2.businessunit.counterAllowMutation` must be set to true.- Specified by:
allowMutationin interfaceorg.hibernate.generator.Generator
-