HQL select new
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)).
Submitted by Danny Groenewegen on 13 September 2010 at 10:47select new Tag(t.name) from Issue as i left join i.tags as t
Log in to post comments