3
Currently I can group dates using Projections.sqlGroupProjection(). When my date field is in the same class as I create the Criteria, it works perfectly. The problem is when I create an alias, and the date field I want to group is within the class of this alias. Inside my sqlGroupProjection it does not recognize the alias that Hibernate gives the classes.
Does anyone have any idea how to get around this situation or other way of grouping dates without using the "Extract"?