public enum SequenceMismatchStrategy extends Enum<SequenceMismatchStrategy>
Enum Constant and Description |
---|
EXCEPTION
When detecting a mismatch, Hibernate throws a
MappingException indicating the sequence
whose entity mapping configuration conflict with the one found in the database. |
FIX
When detecting a mismatch, Hibernate tries to fix it by overriding the entity sequence mapping using the one
found in the database.
|
LOG
When detecting a mismatch, Hibernate simply logs the sequence whose entity mapping configuration conflicts
with the one found in the database.
|
NONE
Don't perform any check.
|
Modifier and Type | Method and Description |
---|---|
static SequenceMismatchStrategy |
interpret(Object sequenceMismatchStrategy)
Interpret the configured SequenceMismatchStrategy value.
|
static SequenceMismatchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SequenceMismatchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SequenceMismatchStrategy LOG
public static final SequenceMismatchStrategy EXCEPTION
MappingException
indicating the sequence
whose entity mapping configuration conflict with the one found in the database.public static final SequenceMismatchStrategy FIX
public static final SequenceMismatchStrategy NONE
public static SequenceMismatchStrategy[] values()
for (SequenceMismatchStrategy c : SequenceMismatchStrategy.values()) System.out.println(c);
public static SequenceMismatchStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SequenceMismatchStrategy interpret(Object sequenceMismatchStrategy)
Valid values are either a SequenceMismatchStrategy
object or its String representation.
For string values, the matching is case insensitive, so you can use either FIX
or fix
.
sequenceMismatchStrategy
- configured SequenceMismatchStrategy
representationSequenceMismatchStrategy
objectCopyright © 2001-2021 Red Hat, Inc. All Rights Reserved.