I'm confused about DTO and Spring Data Projection, when I open an entity file there is an option to create DTO "Create DTO" and Spring Data Projection "Create Spring Data Projection" in Intelij IDEA IDE.
What are the functions and differences between the two? when to use it between DTO and Spring Data Projection. Is there a reference that shows the one-to-one differences in tabular form? I googled, the results appear ambiguous between the two things