Fetching a DTO With a To-Many Association
DTO projections provide better performance than entities if you only want to read but not change the retrieved information. They avoid the management overhead of an entity class and enable you to only select the database columns your business code needs. But as so often, DTO projections also have a downside, and that’s the handling…