Hi,
Is there a way to force the implicit use of "left outer joins" in scalar queries?
For example, if I have this query:
"select cat, cat.mate.name from DomesticCat cat"
the result set won't contain cats that do not have mates.
But what I want is to have null returned as the mate's name,
when the cat doesn't have a mate.
And I want to achieve this WITHOUT using an explicit left join
in the from clause of the query like this:
"select cat, mate.name from DomesticCat cat left join cat.mate as mate"
Is this possible?
Thank you,
Teodor
|