`
fenghaodouluo
  • 浏览: 4492 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

could not resolve property

阅读更多

 错误解释:could not resolve property(无法解析属性)

        顾名思义在写hql语句的时候,属性写错了!除了表需要实体类去替换外,里面的对数据库字段的操作,也改为对hibernate的配置文件的属性进行替换,否则就会报错。

 解决方案:

        仔细检查hql的sql语句,保证里面引用的字段已经替换成相应配置文件中id的值

 

分享到:
评论

相关推荐

    hibernate-detail:在使用hql时遇到的一个问题

    `org.hibernate.QueryException: could not resolve property: isStudent of: com.zluo.hibernate.po.User [from com.zluo.hibernate.po.User u where u.isStudent = ?]` 当时就在想怎么会出现这个错误呢,

    Hibernate映射导致的几个异常

    QueryException: could not resolve property 当执行HQL查询或criteria查询时,如果指定的属性名在目标类中不存在,或者属性路径有误,就会抛出此异常。例如,正确的查询可能是`from Category category where ...

    Hibernate几个常见错误解决方式

    错误信息:`could not resolve property: trackDate of: ookj.domain.TjReagentTrack` 这个错误通常是因为Hibernate找不到实体类`TjReagentTrack`中名为`trackDate`的属性。这可能是由于映射配置错误,比如在配置...

    spring + redis + sentinel 配置

    <property name="connectionFactory" ref="jedisConnectionFactory"/> ``` 至此,我们已经完成了Spring与Redis Sentinel的集成。现在,Spring应用可以通过`stringRedisTemplate`访问和操作Redis,同时享受到...

    Maven解决jar冲突调试步骤

    nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.topsec.tbm.web.auth.TbmRealm]: Constructor threw exception; nested exception is Java....

    Sakemail

    Also Roger has made the IPAddress property obsolete (do not use it, use Host instead), SakEmail will resolve the host properly no matter if it is a host name or a IP address. So in the next version I...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00327929 Defect Command to enable Patrol Read on SSDs controller property is not shown in Help SCGCQ00331576 Defect LSI MegaCLI EncInfo (Enclosure Info) duplicates the first power supply status ...

    微软内部资料-SQL性能优化3

     Formulate hypothesis to resolve locking and blocking issues. Lesson 1: Concepts – Locks and Lock Manager This lesson outlines some of the common causes that contribute to the perception ...

    CE中文版-启点CE过NP中文.exe

    Apparently 6.8 contained a couple of annoying bugs, so here's an update that should hopefully resolve most issues. Also a few new features that can come handy Download: Cheat Engine 6.8.1 Fixes: ...

Global site tag (gtag.js) - Google Analytics