0 Replies Latest reply on Jul 13, 2011 5:24 AM by zeemankay

    unexpected token: from

    zeemankay

      Hi, I'm using Eclipse Helios 3.6.2 and Hibernate Tools 3.4.0 to create a dynamic web with hibernate. I got some silly errors.....

       

      When I query this statement ---> from EnvDao

      The results will appear as expected.

       

      ok.png

       

      But, when I query this statement --> select e.envName from EnvDao e

      The following error occur...

       

      org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 1, column 18 [select e.envName from object.EnvDao e]

       

      ko.png

       

       

      Same goes to other same queries but from different column and table. Please help.....