projections: Spring Data JPA interface, record, nested and dynamic projections with the SQL they generate

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b5sejRr8s3kapmRY2g
This commit is contained in:
2026-11-12 23:51:00 +05:30
co-authored by Claude Sonnet 5.5
parent 7d7d4e872e
commit e3d1b550ae
30 changed files with 710 additions and 0 deletions
@@ -0,0 +1,4 @@
# one repository method, three result shapes: findByDepartmentName("Sales", Class<T>)
Employee -> 4 rows, 7 columns: select e1_0.id,e1_0.bio,e1_0.department_id,e1_0.email,e1_0.first_name,e1_0.last_name,e1_0.salary
EmployeeSummary -> 4 rows, 2 columns: select e1_0.first_name,e1_0.last_name
EmployeeDto -> 4 rows, 2 columns: select e1_0.first_name,e1_0.last_name