Rental多対任意の関連付けを持つaのHQLを作成しようとしていPaymentTypesます。
from rental
where not exists(
from PaymentTypes pt where pt.Owner = :rental and type = 'Visa'
)
Ownerとである任意の関連付けOwnerIdですrental.IdOwnerType = 'Rental'
残念ながらSetEntity、レンタルのプリフェッチとして使用することはできません。その場合、電話をかけるSetEntityと非常にコストがかかります。