【发布时间】:2013-02-26 09:48:51
【问题描述】:
我正在尝试为具有多对任意关联 PaymentTypes 的 Rental 编写 HQL。
from rental
where not exists(
from PaymentTypes pt where pt.Owner = :rental and type = 'Visa'
)
Owner 是任何关联,其中OwnerId 是rental.Id 和OwnerType = 'Rental'
很遗憾,我不能使用SetEntity 作为预取租金然后调用SetEntity 将非常昂贵。
【问题讨论】:
标签: hibernate nhibernate hql