AST « Query « JPA Q&A





1. jpql order by subquery produces unexpected AST node exception    stackoverflow.com

I translated a working (postgre)sql query to jpql, but hibernate throws a

org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node exception
These are my core model classes:
@Entity
public class Piece {
    ...

3. unexpected AST node: query    forum.hibernate.org

No - I think that was a seperate probem. I think that this one is due to the following in hql-sql.g:- Code: arithmeticExpr : #(PLUS expr expr) { prepareArithmeticOperator( #arithmeticExpr ); } | #(MINUS expr expr) { prepareArithmeticOperator( #arithmeticExpr ); ...

4. modifying HQL queries using the AST    forum.hibernate.org

hi everyone, I'm trying to programmatically manipulate an HQL query. for example, given an HQL query, I'd like to produce a second query that counts the result set size of the first query. I know that Criteria objects are an effective way to accomplish dynamically constructed queries, but please believe that starting with HQL instead is desirable in my circumstances. The ...

5. unexpected AST node: query    forum.hibernate.org

im using IBM DB2 when i use case statement in my named query (HQL) im getting the following error [4/10/07 14:43:23:937 GMT+05:30] 5d70923e PARSER E org.hibernate.hql.PARSER *** ERROR: :0:0: unexpected AST node: query [4/10/07 14:43:23:937 GMT+05:30] 5d70923e PARSER E org.hibernate.hql.PARSER *** ERROR: :0:0: unexpected AST node: query [4/10/07 14:43:23:953 GMT+05:30] 5d70923e PARSER E org.hibernate.hql.PARSER *** ERROR: :0:0: unexpected AST node: query ...