| Hello, got this exception while executing this query:
select d from Document d left join d.authorizations a where a.person.id=:personId
where Document.authorizations is an @ElementCollection The same exception is thrown also when executing an equivalent (JPA) criteria query. However, all these other queries work just fine:
select d from Document d left join d.authorizations a where a.person=:person
select d from Document d left join d.authorizations a join a.person p where p=:person
select d from Document d left join d.authorizations a join a.person p where p.id=:personId
I'll provide a test case soon. Thank you |