我有一个Product实体,它与Distributor实体有@OneToMany关系。现在,这些Distributor实体也与其他Product实体链接。因此,当我们初始化Product1的Product1实体时,我们得到了异常为javax.persistence.EntityNotFoundException: Unable to find com.comapny.Distributor但是,由于这个错误,它没有正确地初始化Product2的Product2实体。我的
ob.listSC) > 0 AND ob.listSC.registrationDate BETWEEN :startDate AND :endDate
以数据库中的所有objectBase对象为例,其中listSC (实体集合)不是 null ,为空(不幸的是,无法弄清楚如何使其成为ingore空值)。对于listSC中的每个项,检查特定实体在给定日期之间是否有一个属性为listSC。at org.hibernate.hql.interna