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 @@
# closed projection with a default method: findFullNameClosedByDepartmentName("Sales")
select e1_0.first_name,e1_0.last_name from employee e1_0 left join department d1_0 on d1_0.id=e1_0.department_id where d1_0.name=?
columns selected: 2, entities now managed by the persistence context: 0
getFullName() of first row: First1 Last1