org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.dc.bd.system.vo.TblSystemMerchantInfo#525]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)错误 ;我查询一个表 返回是 应该是list , 但这个表 的一个字段是 另一个表的主键 , 也就是TblSystemMerchantInfo 这个表 ;主表是这样配置的:
public class TblConsumableStockrl {
       private TblSystemMerchantInfo merchantInfo;
      @OneToOne
@JoinColumn(name="merchant_id",insertable=false ,updatable=false)
    @NotFound(action=NotFoundAction.IGNORE)
    @LazyCollection(LazyCollectionOption.TRUE)
    public TblSystemMerchantInfo getMerchantInfo() {
return merchantInfo;
}
public void setMerchantInfo(TblSystemMerchantInfo merchantInfo) {
this.merchantInfo = merchantInfo;
}}