Back to Browse

Part 16 Spring Data Class/DTO Projections Part 2

255 views
Mar 1, 2024
1:40

We can also use DTO projections in a derived query without a constructor expression. Rules DTO class has only one constructor It’s parameter names match entity attribute names Spring generates a query with the required constructor expression. This makes the query definition easier and still provides you with the performance benefits of a query that only selects the required database columns.

Download

0 formats

No download links available.

Part 16 Spring Data Class/DTO Projections Part 2 | NatokHD