org.hibernate.cfg.AvailableSettings#SEQUENCE_INCREMENT_SIZE_MISMATCH_STRATEGY
| Modifier and Type | Field and Description |
|---|---|
| public static final SequenceMismatchStrategy | EXCEPTION
When detecting a mismatch, Hibernate throws a |
| public static final SequenceMismatchStrategy | FIX
When detecting a mismatch, Hibernate tries to fix it by overriding the entity sequence mapping using the one found in the database. |
| public static final SequenceMismatchStrategy | LOG
When detecting a mismatch, Hibernate simply logs the sequence whose entity mapping configuration conflicts with the one found in the database. |
| public static final SequenceMismatchStrategy | NONE
Don't perform any check. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SequenceMismatchStrategy | Returns: associatedSequenceMismatchStrategy objectconfigured sequenceMismatchStrategy)SequenceMismatchStrategy representationInterpret the configured SequenceMismatchStrategy value. |
| public static SequenceMismatchStrategy | |
| public static SequenceMismatchStrategy[] |
| EXCEPTION | back to summary |
|---|---|
| public static final SequenceMismatchStrategy EXCEPTION When detecting a mismatch, Hibernate throws a | |
| FIX | back to summary |
|---|---|
| public static final SequenceMismatchStrategy FIX When detecting a mismatch, Hibernate tries to fix it by overriding the entity sequence mapping using the one found in the database. | |
| LOG | back to summary |
|---|---|
| public static final SequenceMismatchStrategy LOG When detecting a mismatch, Hibernate simply logs the sequence whose entity mapping configuration conflicts with the one found in the database. | |
| NONE | back to summary |
|---|---|
| public static final SequenceMismatchStrategy NONE Don't perform any check. This is useful to speedup bootstrap as it won't query the sequences on the DB, at cost of not validating the sequences. | |
| SequenceMismatchStrategy | back to summary |
|---|---|
| private SequenceMismatchStrategy() | |
| interpret | back to summary |
|---|---|
| public static SequenceMismatchStrategy interpret(@Nullable Object sequenceMismatchStrategy) Interpret the configured SequenceMismatchStrategy value.
Valid values are either a
For string values, the matching is case insensitive, so you can use either
| |
| valueOf | back to summary |
|---|---|
| public static SequenceMismatchStrategy valueOf(String name) | |
| values | back to summary |
|---|---|
| public static SequenceMismatchStrategy[] values() | |