Hibernate Criterias - Group Dates

Asked

Viewed 218 times

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"?

1 answer

2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.