IllegalStateException: No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode in Hibernate
Issue
-
Exception when deploying a persistence unit with an entity with a
NamedQueryjava.lang.IllegalStateException: No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode +-[IDENT] IdentNode: 'NAME' {originalText=NAME} -
The entity is defined as follows:
@Entity @NamedQuery(name = "empName", query = "SELECT NAME FROM EMPLOYEE") public class EMPLOYEE { @Id @Column(name="NAME") protected String name; ... }
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6
- Hibernate 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.