{"record":{"id":"b030311451ad5dd6","repo":"hibernate/hibernate-orm","slug":"setting-hibernate-id-sequence-increment-size-mism","errorCode":null,"errorMessage":"Setting 'hibernate.id.sequence.increment_size_mismatch_strategy' should be one of [LOG, EXCEPTION, FIX, NONE] but was [","messagePattern":"Setting 'hibernate\\.id\\.sequence\\.increment_size_mismatch_strategy' should be one of \\[LOG, EXCEPTION, FIX, NONE\\] but was \\[","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/id/SequenceMismatchStrategy.java","lineNumber":72,"sourceCode":"\t * @param setting configured {@link SequenceMismatchStrategy} representation\n\t *\n\t * @return associated {@link SequenceMismatchStrategy} object\n\t */\n\tpublic static SequenceMismatchStrategy interpret(@Nullable Object setting) {\n\t\tif ( setting == null ) {\n\t\t\treturn EXCEPTION;\n\t\t}\n\t\telse if ( setting instanceof SequenceMismatchStrategy mismatchStrategy ) {\n\t\t\treturn mismatchStrategy;\n\t\t}\n\t\telse if ( setting instanceof String mismatchStrategyName ) {\n\t\t\tfor ( var value : values() ) {\n\t\t\t\tif ( value.name().equalsIgnoreCase( mismatchStrategyName ) ) {\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new HibernateException( \"Setting '\" + SEQUENCE_INCREMENT_SIZE_MISMATCH_STRATEGY\n\t\t\t\t+ \"' should be one of [LOG, EXCEPTION, FIX, NONE] but was [\" + setting + \"]\" );\n\t}\n}\n","sourceCodeStart":54,"sourceCodeEnd":76,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/id/SequenceMismatchStrategy.java#L54-L76","documentation":"Error \"Setting 'hibernate.id.sequence.increment_size_mismatch_strategy' should be one of [LOG, EXCEPTION, FIX, NONE] but was [\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when the entity mapping's sequence increment size does not match the database sequence's actual increment.","commonSituations":"Typical situations: DBA changed the sequence increment; allocationSize in the mapping differs from the DDL; mismatch strategy set to EXCEPTION.","solutions":["Set 'hibernate.id.sequence.increment_size_mismatch_strategy' to one of LOG, EXCEPTION, FIX, or NONE."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}