HQL’s select new would be nice to support, unfortunately it requires a matching constructor signature, which is implicit in WebDSL. Generating the constructor for each occurrence could cause overload clashes (e.g. Tag(name,desc) and Tag(desc,name)).

select new Tag(t.name)
from Issue as i left join i.tags as t
Submitted by Danny Groenewegen on 13 September 2010 at 10:47

Log in to post comments