org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalStateException: No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode
\-[IDENT] IdentNode: 'e' {originalText=e}
HQL query:
Query query = session.createQuery("SELECT e FROM Employee");
Problem:
In the above query, 'e' alias name is given in Employee table.
Solution:
Query query = session.createQuery("SELECT e FROM Employee e");
\-[IDENT] IdentNode: 'e' {originalText=e}
HQL query:
Query query = session.createQuery("SELECT e FROM Employee");
Problem:
In the above query, 'e' alias name is given in Employee table.
Solution:
Query query = session.createQuery("SELECT e FROM Employee e");
0 comments:
Post a Comment