hi, i have a strange problem with a hibernate sql query:
The db relations are like follows:
registration has one invoicerecipient
registration has many attendees
i have the persid of an invoicerecipient, so I should get in both following cases the associated registration, but only the second case works. Does anybody know why the first case doesn't work?
select distinct registration from Registration registration, in(registration.attendees) atts where atts.id = :persid or registration.invoicerecipient.id = :persid
select distinct registration from Registration registration where registration.invoicerecipient.id = :persid