Is there support for this yet?
http://opensource.atlassian.com/project ... e/HHH-2952It looks like the bug was quickly rejected, but I think the issue still exists correct?
The problem is if you are using Criteria and have a join and you want to do a SQL projection or SQL group projection for example
Code:
Projections.sqlGroupProjection("month(dateCreated)")
It's possible that "dateCreated" is defined on both the root and join subquery table. And the generated SQL will fail because of this ambiguous reference.
To get the "dateCreated" on the root entity you would do
Code:
Projections.sqlGroupProjection("{alias}.month(dateCreated)")
This works. But how do you get the "dateCreated" on the joined table?