Skip to content

Recommend Java Records instead of Lombok for class-based projections #2793

Closed
@grubeninspekteur

Description

@grubeninspekteur

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions