On Jan 14, 2010, at 11:40 AM, Aristedes Maniatis wrote:
Sure named aliases might be useful in themselves, maybe, for someone. I can't personally think of a reason.
You are not using EJBQL (not that it is very usable in 3.0). It has an explicit notion of named joins. This is where it all fits in nicely.
SELECT a FROM Artist a JOIN a.paintings p Andrus
