There are a few different ways to achieve lightweight projections with Hibernate + Spring and they all work fine for ‘simpler’ cases. It boils down to which flavour one prefer – Class based DTOs, Interfaces or dynamic projections. However, things to watch out is N+1 fetch problem and even Open […]