org.hibernate.QueryException

could not resolve property: IDFest of: entities.Day [from entities.Day as d where d.IDFest = 27 and not exists ( from tickets t where t.IDUser = 1 and t.IDFest = 27 ) ]

Solutions on the web352

  • could not resolve property: IDFest of: entities.Day [from entities.Day as d where d.IDFest = 27 and not exists ( from tickets t where t.IDUser = 1 and t.IDFest = 27 ) ]
  • could not resolve property: ObjectId of: test.Objtablee [from test.Objtablee as ob where ob.ObjectId ='18' and ob.ClientId='1']
  • could not resolve property: location.Longitude of: org.project.model.Event [select c from org.project.model.Event as c WHERE c.location.Longitude between :minLongitude AND :maxLongitude]
  • Stack trace

    • org.hibernate.QueryException: could not resolve property: IDFest of: entities.Day [from entities.Day as d where d.IDFest = 27 and not exists ( from tickets t where t.IDUser = 1 and t.IDFest = 27 ) ] at org.hibernate.QueryException.generateQueryException(QueryException.java:137) at org.hibernate.QueryException.wrapWithQueryString(QueryException.java:120) at org.hibernate.hql.internal.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:247) at org.hibernate.hql.internal.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:209) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:126) at org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:88) at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190) at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301) at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236) at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1796) Caused by: org.hibernate.QueryException: could not resolve property: IDFest of: entities.Day at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:83) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:77) at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1978) at org.hibernate.hql.internal.classic.PathExpressionParser.getPropertyType(PathExpressionParser.java:291) at org.hibernate.hql.internal.classic.PathExpressionParser.end(PathExpressionParser.java:334) at org.hibernate.hql.internal.classic.WhereParser.doPathExpression(WhereParser.java:371) at org.hibernate.hql.internal.classic.WhereParser.doToken(WhereParser.java:404) at org.hibernate.hql.internal.classic.WhereParser.token(WhereParser.java:285) at org.hibernate.hql.internal.classic.ClauseParser.token(ClauseParser.java:107) at org.hibernate.hql.internal.classic.PreprocessingParser.token(PreprocessingParser.java:131) at org.hibernate.hql.internal.classic.ParserHelper.parse(ParserHelper.java:61) at org.hibernate.hql.internal.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:239) ... 9 more

    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

    16 times, 2 days ago
    Once, 1 month ago
    8 times, 1 month ago
    30 times, 4 months ago
    2 times, 7 months ago
    11 more bugmates