{"record":{"id":"0e7d7af7ee7bacce","repo":"hibernate/hibernate-orm","slug":"identifier-text-cannot-be-null","errorCode":null,"errorMessage":"Identifier text cannot be null","messagePattern":"Identifier text cannot be null","errorType":"exception","errorClass":"IllegalIdentifierException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/naming/Identifier.java","lineNumber":219,"sourceCode":"\t * Constructs an identifier instance.\n\t *\n\t * @param text The identifier text.\n\t * @param quoted Is this a quoted identifier?\n\t */\n\tpublic Identifier(String text, boolean quoted) {\n\t\tthis( text, quoted, false );\n\t}\n\n\t/**\n\t * Constructs an identifier instance.\n\t *\n\t * @param text The identifier text.\n\t * @param quoted Is this a quoted identifier?\n\t * @param isExplicit Whether the name is explicitly set\n\t */\n\tpublic Identifier(String text, boolean quoted, boolean isExplicit) {\n\t\tif ( isEmpty( text ) ) {\n\t\t\tthrow new IllegalIdentifierException( \"Identifier text cannot be null\" );\n\t\t}\n\t\tif ( isQuoted( text ) ) {\n\t\t\tthrow new IllegalIdentifierException( \"Identifier text should not contain quote markers (` or \\\")\" );\n\t\t}\n\t\tthis.text = text;\n\t\tthis.isQuoted = quoted;\n\t\tthis.isExplicit = isExplicit;\n\t}\n\n\t/**\n\t * Constructs an unquoted identifier instance.\n\t *\n\t * @param text The identifier text.\n\t */\n\tprotected Identifier(String text) {\n\t\tthis.text = text;\n\t\tthis.isQuoted = false;\n\t\tthis.isExplicit = false;","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/naming/Identifier.java#L201-L237","documentation":"Error \"Identifier text cannot be null\" 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":["Pass a non-null name for the table/column/sequence identifier; check that the naming strategy or explicit name in the mapping is not null."],"exampleFix":"Pass a non-null name for the table/column/sequence identifier; check that the naming strategy or explicit name in the mapping is not 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"}