有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