{"record":{"id":"dbfcfdafb236def2","repo":"hibernate/hibernate-orm","slug":"unable-to-determine-implicit-sequence-name-for-tar","errorCode":null,"errorMessage":"Unable to determine implicit sequence name for target table '","messagePattern":"Unable to determine implicit sequence name for target table '","errorType":"exception","errorClass":"MappingException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/id/enhanced/StandardNamingStrategy.java","lineNumber":101,"sourceCode":"\t\tfinal String base = getString( IMPLICIT_NAME_BASE, configValues, rootTableName );\n\t\tif ( isNotEmpty( explicitSuffix ) && isNotEmpty( base ) ) {\n\t\t\t// an \"implicit name suffix\" was specified\n\t\t\treturn isQuoted( base )\n\t\t\t\t\t? \"`\" + unQuote( base ) + explicitSuffix + \"`\"\n\t\t\t\t\t: base + explicitSuffix;\n\t\t}\n\t\telse {\n\t\t\tfinal String annotationGeneratorName = getString( GENERATOR_NAME, configValues );\n\t\t\tif ( isNotEmpty( annotationGeneratorName ) ) {\n\t\t\t\treturn annotationGeneratorName;\n\t\t\t}\n\t\t\telse if ( isNotEmpty( base ) ) {\n\t\t\t\treturn isQuoted( base )\n\t\t\t\t\t\t? \"`\" + unQuote( base ) + DEF_SEQUENCE_SUFFIX + \"`\"\n\t\t\t\t\t\t: base + DEF_SEQUENCE_SUFFIX;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new MappingException( \"Unable to determine implicit sequence name for target table '\" + rootTableName + \"'\" );\n\t\t\t}\n\t\t}\n\t}\n\n\t@Override\n\tpublic QualifiedName determineTableName(\n\t\t\tIdentifier catalogName,\n\t\t\tIdentifier schemaName,\n\t\t\tMap<?, ?> configValues,\n\t\t\tServiceRegistry serviceRegistry) {\n\t\treturn qualifiedTableName( catalogName, schemaName, serviceRegistry,\n\t\t\t\timplicitTableName( configValues ) );\n\t}\n\n\tprivate static String implicitTableName(Map<?, ?> configValues) {\n\t\tfinal String generatorName = getString( GENERATOR_NAME, configValues );\n\t\treturn isNotEmpty( generatorName ) ? generatorName : DEF_TABLE;\n\t}","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/id/enhanced/StandardNamingStrategy.java#L83-L119","documentation":"Error \"Unable to determine implicit sequence name for target table '\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown when Hibernate cannot derive a sequence name for a table-based id generator.","commonSituations":"Typical situations: missing sequenceName/table configuration on the generator; per-table generator without naming information.","solutions":["Specify the sequence name explicitly in the @SequenceGenerator/@GeneratedValue mapping for that table."],"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"}