How To Fetch DTO Via SqlResultSetMapping
And EntityManager
Description: Fetching more data than needed is prone to performance penalities. Using DTO allows us to extract only the needed data. In this application we rely on SqlResultSetMapping
and EntityManager
.
Key points:
- use
SqlResultSetMapping
andEntityManager
- for using Spring Data Projections check this item