hibernate/hibernate-orm · error · HibernateException
Setting 'hibernate.id.sequence.increment_size_mismatch_strat
Error message
Setting 'hibernate.id.sequence.increment_size_mismatch_strategy' should be one of [LOG, EXCEPTION, FIX, NONE] but was [
What it means
Error "Setting 'hibernate.id.sequence.increment_size_mismatch_strategy' should be one of [LOG, EXCEPTION, FIX, NONE] but was [" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/id/SequenceMismatchStrategy.java:72
* @param setting configured {@link SequenceMismatchStrategy} representation
*
* @return associated {@link SequenceMismatchStrategy} object
*/
public static SequenceMismatchStrategy interpret(@Nullable Object setting) {
if ( setting == null ) {
return EXCEPTION;
}
else if ( setting instanceof SequenceMismatchStrategy mismatchStrategy ) {
return mismatchStrategy;
}
else if ( setting instanceof String mismatchStrategyName ) {
for ( var value : values() ) {
if ( value.name().equalsIgnoreCase( mismatchStrategyName ) ) {
return value;
}
}
}
throw new HibernateException( "Setting '" + SEQUENCE_INCREMENT_SIZE_MISMATCH_STRATEGY
+ "' should be one of [LOG, EXCEPTION, FIX, NONE] but was [" + setting + "]" );
}
}
View on GitHub (pinned to fad1729dce)
Solutions
- Set 'hibernate.id.sequence.increment_size_mismatch_strategy' to one of LOG, EXCEPTION, FIX, or NONE.
When it happens
Trigger: Thrown when the entity mapping's sequence increment size does not match the database sequence's actual increment.
Common situations: Typical situations: DBA changed the sequence increment; allocationSize in the mapping differs from the DDL; mismatch strategy set to EXCEPTION.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/b030311451ad5dd6.
Report an issue: GitHub.