{"record":{"id":"a4a7c003811d32f5","repo":"hibernate/hibernate-orm","slug":"identifier-text-should-not-contain-quote-markers","errorCode":null,"errorMessage":"Identifier text should not contain quote markers (` or \")","messagePattern":"Identifier text should not contain quote markers \\(` or \"\\)","errorType":"exception","errorClass":"IllegalIdentifierException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/boot/model/naming/Identifier.java","lineNumber":222,"sourceCode":"\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;\n\t}\n\n\t/**","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/boot/model/naming/Identifier.java#L204-L240","documentation":"Error \"Identifier text should not contain quote markers (` or \")\" 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":["Remove the backtick/quote characters from the identifier name and set globally_quoted_identifiers or use quotedIdentifier() instead.","Use Identifier.toIdentifier(text, true) rather than embedding quote markers in the raw name."],"exampleFix":"Remove the backtick/quote characters from the identifier name and set globally_quoted_identifiers or use quotedIdentifier() instead.","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"}