Spring Data JPA Projections: Interface, Record and Dynamic Projections (With the SQL They Generate)
Spring Data JPA projections, tested on Spring Boot 4.1.2 and Hibernate 7.4: closed and open interface projections, record DTOs, dynamic projections and @Query constructor expressions, with the real SQL Hibernate generated for each, the @Value trap that loads full rows, and three @Query traps that fail quietly.