Introduction In this article, I’m going to show you what is the best way to fetch a Spring Data JPA DTO Projection. Apart from the basic use cases, we’re going to see how to fetch even hierarchical DTO structures using Spring Data JPA. Why use DTO projections As I explained in this article, DTO projections allow you to select only the columns that you need for a given use case. Throughout my consulting and training engagements, I get to see that, many times, developers fetch more than necessary, and the best way... Read More
The post The best way to fetch a Spring Data JPA DTO Projection appeared first on Vlad Mihalcea.