• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IllegalStateException:No data type for node: org.hibernate.hql.ast.tree.IdentNode IdentNode:'Id'

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to use SQL Queries on to @NamedQuery Annotations on to my Bean class .
Please see the code :



This is under My Client class :



But unfortunately , i am getting

java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode
\-[IDENT] IdentNode: 'Id' {originalText=Id}


Please suggest as how to solve this , Thanks .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember, Java is case sensitive.
 
udaykiran pulipati
Greenhorn
Posts: 12
Hibernate Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are not declared Id in query



It solves your problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic