Closed
Description
The documentation section on Class-based Projections (DTOs) recommends Lombok's @Value
annotation to reduce boilerplate of DTOs. With the Java 17 baseline of Spring 6, it would be better to just replace the example with a record, mention that DTOs can be arbitrary classes with a constructor, and remove the mention of Lombok.
Originally opened in project Spring Data JPA, but documentation resides in spring-data-commons.