邓轩 2019-06-11 11:47
浏览 1544

Could not read entity state from ResultSet : EntityKey问题

有Bj类、Vendor类,Bj类里面有一个Vendor 属性,用到了jpa的@ManyToOne注解,Bj表里面存的是vendor_id这个字段,Bj类关联了Vendor类里面的Id,使用Jpa的findAll方法查询列表的时候提示的这个错,我想知道什么情况下会出这种错,网上的说法是表和类的类型不一致但是我别的类也是这种关联关系却没问题,急死了!!!

06/11 11:33:15.872 [http-bio-8080-exec-3] ERROR Logs - :org.springframework.orm.jpa.JpaSystemException: Could not read entity state from ResultSet : EntityKey[com.ying.erp.entity.Vendor#5]; nested exception is org.hibernate.exception.GenericJDBCException: Could not read entity state from ResultSet : EntityKey[com.ying.erp.entity.Vendor#5] [in com.ying.erp.web.EntityController.list]
六月 11, 2019 11:33:15 上午 org.apache.catalina.core.ApplicationDispatcher invoke

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 安装svn网络有问题怎么办
    • ¥15 Python爬取指定微博话题下的内容,保存为txt
    • ¥15 vue2登录调用后端接口如何实现
    • ¥65 永磁型步进电机PID算法
    • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥15 latex怎么处理论文引理引用参考文献