org.hibernate.hql.internal.ast.QuerySyntaxException

Invalid path: 'generatedAlias2.name' [select generatedAlias0 from org.hibernate.bugs.entity.Allocation as generatedAlias0 inner join generatedAlias0.resource as generatedAlias1 where generatedAlias2.name=:param0]

Solutions on the web169

  • Invalid path: 'generatedAlias2.name' [select generatedAlias0 from org.hibernate.bugs.entity.Allocation as generatedAlias0 inner join generatedAlias0.resource as generatedAlias1 where generatedAlias2.name=:param0]
  • via Hibernate JIRA by Emond Papegaaij, 1 year ago
    Invalid path: 'generatedAlias2.myvalue' [select generatedAlias0 from org.hibernate.bugs.RefEntity as generatedAlias0 inner join generatedAlias0.other as generatedAlias1 where generatedAlias2.myvalue=42]
  • via Hibernate JIRA by Emond Papegaaij, 1 year ago
    Invalid path: 'generatedAlias2.myvalue' [select generatedAlias0 from org.hibernate.bugs.RefEntity as generatedAlias0 inner join generatedAlias0.other as generatedAlias1 where generatedAlias2.myvalue=42]
  • Stack trace

    • org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'generatedAlias2.name' [select generatedAlias0 from org.hibernate.bugs.entity.Allocation as generatedAlias0 inner join generatedAlias0.resource as generatedAlias1 where generatedAlias2.name=:param0] at org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:74) at org.hibernate.hql.internal.ast.ErrorCounter.throwQueryException(ErrorCounter.java:91) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:268) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:190) at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:142) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:115) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:77) at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:152) at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:526) at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:628)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    7 times, 11 months ago
    143 times, 1 day ago
    6 times, 3 days ago
    Once, 2 weeks ago
    16 times, 1 month ago
    30 more bugmates