org.hibernate.hql.ast.QuerySyntaxError: unexpected AST node: 'A' [ from Foo foo where foo.status = foo.bar.Foo.STATUS_APPROVED ]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Robert Watkins, 1 year ago
unexpected AST node: 'A' [ from Foo foo where foo.status = foo.bar.Foo.STATUS_APPROVED ]
via Hibernate JIRA by Robert Watkins, 1 year ago
unexpected AST node: 'A' [ from Foo foo where foo.status = foo.bar.Foo.STATUS_APPROVED ]
via Oracle Community by 843854, 1 year ago
expecting DOT, found '=' near lin e 1, column 25 [update Category set lft = lft + 2 where lft >2 ]
via Stack Overflow by Asuthosh Sharma
, 1 year ago
unexpected token: LEFT near line 1, column 23 [FROM com.admin.A as a LEFT JOIN B as b where a.Id=b.Id LEFT JOIN C as c where b.type=c.type]
via hibernate.org by Unknown author, 2 years ago
expecting "all", found 'join' near line 4, column 78 [ from org.openehr.rm.common.archetyped.Archetyped as at fetch join org.openehr.rm.support.identification.ArchetypeID as aId where aId.value = ? ]
org.hibernate.hql.ast.QuerySyntaxError: unexpected AST node: 'A' [ from Foo foo where foo.status = foo.bar.Foo.STATUS_APPROVED ]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:63)
at org.hibernate.hql.ast.QueryTranslatorImpl.generate(QueryTranslatorImpl.java:180)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:146)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:414)
at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:375)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:278)
at foo.bar.HibernateConfigTest.testCreateSessionFactory(HibernateConfigTest.java:152)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.