hibernate/hibernate-orm · error · IllegalIdentifierException

Identifier text cannot be null

Error message

Identifier text cannot be null

What it means

Error "Identifier text cannot be null" thrown in hibernate/hibernate-orm.

Source

Thrown at hibernate-core/src/main/java/org/hibernate/boot/model/naming/Identifier.java:219

	 * Constructs an identifier instance.
	 *
	 * @param text The identifier text.
	 * @param quoted Is this a quoted identifier?
	 */
	public Identifier(String text, boolean quoted) {
		this( text, quoted, false );
	}

	/**
	 * Constructs an identifier instance.
	 *
	 * @param text The identifier text.
	 * @param quoted Is this a quoted identifier?
	 * @param isExplicit Whether the name is explicitly set
	 */
	public Identifier(String text, boolean quoted, boolean isExplicit) {
		if ( isEmpty( text ) ) {
			throw new IllegalIdentifierException( "Identifier text cannot be null" );
		}
		if ( isQuoted( text ) ) {
			throw new IllegalIdentifierException( "Identifier text should not contain quote markers (` or \")" );
		}
		this.text = text;
		this.isQuoted = quoted;
		this.isExplicit = isExplicit;
	}

	/**
	 * Constructs an unquoted identifier instance.
	 *
	 * @param text The identifier text.
	 */
	protected Identifier(String text) {
		this.text = text;
		this.isQuoted = false;
		this.isExplicit = false;

View on GitHub (pinned to fad1729dce)

Solutions

  1. 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.

Example fix

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.

When it happens

Trigger: An entity mapping annotation or bootstrap configuration violates a Hibernate mapping rule.

Common situations: Annotation mapping mistakes: inverse-side @Id associations, @Column on @OneToOne, unmapped association targets, mismatched @EnumeratedValue/@Temporal usage, duplicate sequence generators.


AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22). Data as JSON: /api/errors/0e7d7af7ee7bacce. Report an issue: GitHub.