How to return a custom object from a Spring Data JPA GROUP BY query How to return a custom object from a Spring Data JPA GROUP BY query java java