当前位置: 代码迷 >> J2EE >> nested exception is org.hibernate.QueryException: could not resolve property
  详细解决方案

nested exception is org.hibernate.QueryException: could not resolve property

热度:311   发布时间:2016-04-22 02:57:12.0
Hibernate异常
oplevel of: com.dk.ykt.model.OperFunction [from com.dk.ykt.model.OperFunction as op where op.oplevel=22]; nested exception is org.hibernate.QueryException: could not resolve property: oplevel of: com.dk.ykt.model.OperFunction [from com.dk.ykt.model.OperFunction as op where op.oplevel=22] 
org.hibernate.QueryException: could not resolve property: oplevel of: com.dk.ykt.model.OperFunction [from com.dk.ykt.model.OperFunction as op where op.oplevel=22] 
at org.hibernate.persister.entity.AbstractPropertyMapping.throwPropertyException(AbstractPropertyMapping.java:43) 
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:37) 
at org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1265) 
at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElementType.java:279) 
at org.hibernate.hql.ast.tree.FromElement.getPropertyType(FromElement.java:372) 
at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:539) 
at org.hibernate.hql.ast.tree.DotNode.prepareLhs(DotNode.java:221) 
at org.hibernate.hql.ast.tree.DotNode.resolve(DotNode.java:172)

------解决方案--------------------
属性没有,where op.oplevel=22 
大小写有没错?oplevel是什么类型?
  相关解决方案