org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: < near line 1, column 10 [select 1 < 2 from com.myCompany.MyTable t ]

Hibernate JIRA | tomas | 10 years ago
  1. 0
  2. 0
  3. 0

    HQL left join: Path expected for join

    Stack Overflow | 7 years ago
    org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [select pat.patientId, pat.patientName from com.ccg.db.test.patient as pat left join provider as pro where pat.providerId = pro.providerId ]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate query not working

    Oracle Community | 10 years ago | 843844
    org.hibernate.hql.ast.QuerySyntaxException: Path expected for join! [ SELECT a.userId FROM com.myhibernatetrials.vo.UserVO a left join ArtifactVO b where a.roleId='B' and a.userId = b.qaReviewerId group by a.userId order by count(b.artifactNum)]
  6. 0

    HQL and Hibernate Criteria with Having and GROUP BY clause

    Stack Overflow | 3 years ago | user3336130
    org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: max near line 1, column 117 [from tne.nexstep.dao.ProcessInstanceHistory where processInstance.processInstanceId=122 group by newStatusId having max(processModifiedDate)]

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.hql.ast.QuerySyntaxException

      unexpected AST node: < near line 1, column 10 [select 1 < 2 from com.myCompany.MyTable t ]

      at org.hibernate.hql.ast.QuerySyntaxException.convert()
    2. Hibernate HQL/JP-QL Parser
      QueryTranslatorImpl.compile
      1. org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
      2. org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
      3. org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
      4. org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:235)
      5. org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
      6. org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
      6 frames
    3. Hibernate
      SessionImpl.createQuery
      1. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
      2. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
      3. org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
      4. org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
      5. org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
      6. org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
      6 frames