An example of how to transform result of joined query with Spring Data JPA. This demo is related to this StackOverflow answer.