I have table with timestamp column and want to create Hibernate criteria projection to group me results only by date from that timestamp column (the results in database are YYYY-MM-DD HH:mm:ss).
I know that I have to use Projection.sqlGroupProjection
but not quiet sure hot to do so.
Also, is it possible to write same projection for both MySQL and Oracle ?