org.hibernate.QueryException: could not resolve property: premise of: com.splwg.domain.customerinfo.premise.PremiseGeographicLocation__ [select pgl.geographicValue from com.splwg.domain.customerinfo.p remise.PremiseGeographicLocation__ pgl where pgl.premise.id=:premiseId and pgl.geographicType.id=:pgeocd]

Oracle Community | sivaram | 6 years ago
  1. 0

    Hibernate  Error in Algorithm using SDK 'could not resolve property'

    Oracle Community | 6 years ago | sivaram
    org.hibernate.QueryException: could not resolve property: premise of: com.splwg.domain.customerinfo.premise.PremiseGeographicLocation__ [select pgl.geographicValue from com.splwg.domain.customerinfo.p remise.PremiseGeographicLocation__ pgl where pgl.premise.id=:premiseId and pgl.geographicType.id=:pgeocd]
  2. 0

    org.hibernate.Query could not resolve property when the property is there [Hibernate JPA]

    Stack Overflow | 4 years ago | Szajba
    org.hibernate.QueryException: could not resolve property: palacy  of: odwzorowania.Wywiad [select p from odwzorowania.Pacjent p join p.wizyty w join w.wywiad wy WHERE wy.palacy = 'tak' AND wy.tetno > 120]
  3. 0

    When binding property with @Column annotation arround corresponding getter query "cannot resolve property", whereas all other persistence features (EntityManager.{persist,find,...}) properly supports it. Just moving annotation to the private field fix this issue, but in some case you really want to mapped property from its getter and not from private (protected) field. Annotation binding (causing issue) : [...] class ProcessStateEntity { [...] @Column(name="col") public Calendar getOccured() { ... } [...] } Query exception : org.hibernate.QueryException: could not resolve property: occured of: xxx.ProcessStateEntity [SELECT s.occured FROM xxx.Pr ocessStateEntity s] at org.hibernate.persister.entity.AbstractPropertyMapping.propertyExcept ion(AbstractPropertyMapping.java:44) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(Abstrac tPropertyMapping.java:38) at org.hibernate.persister.entity.AbstractEntityPersister.toType(Abstrac tEntityPersister.java:1358) at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElemen tType.java:279) at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:386) at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:566) at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:241) at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:188)

    Hibernate JIRA | 9 years ago | Cédric Chantepie
    org.hibernate.QueryException: could not resolve property: occured of: xxx.ProcessStateEntity [SELECT s.occured FROM xxx.Pr ocessStateEntity s]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When binding property with @Column annotation arround corresponding getter query "cannot resolve property", whereas all other persistence features (EntityManager.{persist,find,...}) properly supports it. Just moving annotation to the private field fix this issue, but in some case you really want to mapped property from its getter and not from private (protected) field. Annotation binding (causing issue) : [...] class ProcessStateEntity { [...] @Column(name="col") public Calendar getOccured() { ... } [...] } Query exception : org.hibernate.QueryException: could not resolve property: occured of: xxx.ProcessStateEntity [SELECT s.occured FROM xxx.Pr ocessStateEntity s] at org.hibernate.persister.entity.AbstractPropertyMapping.propertyExcept ion(AbstractPropertyMapping.java:44) at org.hibernate.persister.entity.AbstractPropertyMapping.toType(Abstrac tPropertyMapping.java:38) at org.hibernate.persister.entity.AbstractEntityPersister.toType(Abstrac tEntityPersister.java:1358) at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElemen tType.java:279) at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:386) at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:566) at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:241) at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:188)

    Hibernate JIRA | 9 years ago | Cédric Chantepie
    org.hibernate.QueryException: could not resolve property: occured of: xxx.ProcessStateEntity [SELECT s.occured FROM xxx.Pr ocessStateEntity s]
  6. 0

    What could be causing weird property resolving error when using Hibernate envers?

    Stack Overflow | 3 years ago | Vampnik
    org.hibernate.QueryException: could not resolve property: codeto of: citylist_AUD [select new list(ee, e) from citylist_AUD ee, ee.codeto.wes.Citylist_AUD e where ee.originalId.citylist_id = e.originalId.id and ee.originalId.Road_id = :Road_id and e.originalId.REV.id = (select max(e2.originalId.REV.id) from ee.codeto.wes.Citylist_AUD e2 where e2.originalId.REV.id <= :revision and e.originalId.id = e2.originalId.id) and ee.originalId.REV.id = (select max(ee2.originalId.REV.id) from road_city_AUD ee2 where ee2.originalId.REV.id <= :revision and ee.originalId.Road_id = ee2.originalId.Road_id and ee.originalId.citylist_id = ee2.originalId.citylist_id) and ee.REVTYPE != :delrevisiontype and e.REVTYPE != :delrevisiontype]

    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.QueryException

      could not resolve property: premise of: com.splwg.domain.customerinfo.premise.PremiseGeographicLocation__ [select pgl.geographicValue from com.splwg.domain.customerinfo.p remise.PremiseGeographicLocation__ pgl where pgl.premise.id=:premiseId and pgl.geographicType.id=:pgeocd]

      at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException()
    2. Hibernate
      AbstractEntityPersister.toType
      1. org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:44)
      2. org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:38)
      3. org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1358)
      3 frames
    3. Hibernate
      SessionImpl.createQuery
      1. org.hibernate.hql.classic.PathExpressionParser.getPropertyType(PathExpressionParser.java:269)
      2. org.hibernate.hql.classic.PathExpressionParser.token(PathExpressionParser.java:150)
      3. org.hibernate.hql.classic.WhereParser.doPathExpression(WhereParser.java:347)
      4. org.hibernate.hql.classic.WhereParser.doToken(WhereParser.java:382)
      5. org.hibernate.hql.classic.WhereParser.token(WhereParser.java:263)
      6. org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:86)
      7. org.hibernate.hql.classic.PreprocessingParser.token(PreprocessingParser.java:108)
      8. org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:28)
      9. org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:216)
      10. org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:185)
      11. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
      12. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
      13. org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
      14. org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
      15. org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
      16. org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
      16 frames
    4. com.splwg.base
      QueryImpl.firstRow
      1. com.splwg.base.support.impl.QueryImpl.createHibernateQuery(QueryImpl.java:410)
      2. com.splwg.base.support.impl.QueryImpl.createNormalHibernateQuery(QueryImpl.java:428)
      3. com.splwg.base.support.impl.QueryImpl.getHibernateQuery(QueryImpl.java:355)
      4. com.splwg.base.support.impl.QueryImpl.iterate(QueryImpl.java:217)
      5. com.splwg.base.support.impl.QueryImpl.firstRow(QueryImpl.java:235)
      5 frames
    5. com.splwg.cm
      CMBILLNO_Impl__$$FastClassByCGLIB$$2209fd3f.invoke
      1. com.splwg.cm.domain.cmbills.CMBILLNO_Impl.invoke(CMBILLNO_Impl.java:66)
      2. com.splwg.cm.domain.cmbills.CMBILLNO_Impl__.CGLIB$invoke$0(<generated>)
      3. com.splwg.cm.domain.cmbills.CMBILLNO_Impl__$$FastClassByCGLIB$$2209fd3f.invoke(<generated>)
      3 frames
    6. IDEA
      MethodProxy.invokeSuper
      1. net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      1 frame
    7. com.splwg.base
      BusinessMethodInterceptor.intercept
      1. com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84)
      1 frame
    8. com.splwg.cm
      CMBILLNO_Impl__.invoke
      1. com.splwg.cm.domain.cmbills.CMBILLNO_Impl__.invoke(<generated>)
      1 frame
    9. com.splwg.base
      AbstractFromCobolAlgorithmWrapper.invoke
      1. com.splwg.base.support.algorithm.AbstractFromCobolAlgorithmWrapper.invoke(AbstractFromCobolAlgorithmWrapper.java:42)
      1 frame
    10. com.splwg.ccb
      CustomerClassBillSegmentFreezeOrCancelAlgorithmFromCobolWrapper_Gen.invoke
      1. com.splwg.ccb.domain.admin.customerClass.CustomerClassBillSegmentFreezeOrCancelAlgorithmFromCobolWrapper_Gen.invoke(CustomerClassBillSegmentFreezeOrCancelAlgorithmFromCobolWrapper_Gen.java:55)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames