Working with Spring Data
We have introduced that object fetchers can flexibly control the shape of queried data structures, bringing tremendous flexibility for application development.
We also know there are two completely equivalent ways to use them:
-
Directly use object fetchers and return dynamic entity objects
-
Use the DTO language to define output DTO shapes, auto-generate related Java/Kotlin types and entity conversion logic, as well as the object fetcher corresponding to the shape.
Jimmer provides a Spring Boot Starter and is integrated with Spring Data. Object fetchers are also integrated into Spring Data. Relevant documentation links: