{"record":{"id":"601500c907f2b632","repo":"hibernate/hibernate-orm","slug":"multiple-generators-using-the-database-sequence","errorCode":null,"errorMessage":"Multiple generators using the database sequence '%s' are defined, with conflicting 'initialValue' specifications: %s, %s","messagePattern":"Multiple generators using the database sequence '(.+?)' are defined, with conflicting 'initialValue' specifications: (.+?), (.+?)","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/relational/Sequence.java","lineNumber":94,"sourceCode":"\tpublic String getContributor() {\n\t\treturn contributor;\n\t}\n\n\tpublic int getInitialValue() {\n\t\treturn initialValue;\n\t}\n\n\tpublic int getIncrementSize() {\n\t\treturn incrementSize;\n\t}\n\n\tpublic String getOptions() {\n\t\treturn options;\n\t}\n\n\tpublic void validate(int initialValue, int incrementSize) {\n\t\tif ( this.initialValue != initialValue ) {\n\t\t\tthrow new HibernateException(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\t\"Multiple generators using the database sequence '%s' are defined, with conflicting 'initialValue' specifications: %s, %s\",\n\t\t\t\t\t\t\texportIdentifier,\n\t\t\t\t\t\t\tthis.initialValue,\n\t\t\t\t\t\t\tinitialValue\n\t\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\tif ( this.incrementSize != incrementSize ) {\n\t\t\tthrow new HibernateException(\n\t\t\t\t\tString.format(\n\t\t\t\t\t\t\t\"Multiple generators using the database sequence '%s' are defined, with conflicting 'allocationSize' specifications: %s, %s\",\n\t\t\t\t\t\t\texportIdentifier,\n\t\t\t\t\t\t\tthis.incrementSize,\n\t\t\t\t\t\t\tincrementSize\n\t\t\t\t\t)\n\t\t\t);\n\t\t}","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/relational/Sequence.java#L76-L112","documentation":"Error \"Multiple generators using the database sequence '%s' are defined, with conflicting 'initialValue' specifications: %s, %s\" thrown in hibernate/hibernate-orm.","triggerScenarios":"An entity mapping annotation or bootstrap configuration violates a Hibernate mapping rule.","commonSituations":"Annotation mapping mistakes: inverse-side @Id associations, @Column on @OneToOne, unmapped association targets, mismatched @EnumeratedValue/@Temporal usage, duplicate sequence generators.","solutions":["Use the same initialValue in every @SequenceGenerator/@GenericGenerator that shares this database sequence."],"exampleFix":"Use the same initialValue in every @SequenceGenerator/@GenericGenerator that shares this database sequence.","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"}