data-jpa-3-to-4: Spring Data JPA 3.5 vs 4.2 side by side - package moves, nullness, Specification, keyset, Page JSON, Jackson 3, test slices, real transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
Ankur Mhatre
2026-12-03 09:31:28 +05:30
co-authored by Claude Sonnet 5.5
parent 3f061c5e5d
commit 7a2bcc1eb6
100 changed files with 2314 additions and 0 deletions
@@ -0,0 +1,15 @@
# Spring Boot 4.2.0
findByPriceAmountGreaterThan(8, title asc):
Cosmos
Dune
Ficciones
Germinal
SQL: select b1_0.id,b1_0.isbn,b1_0.amount,b1_0.currency,b1_0.published_on,b1_0.subtitle,b1_0.title from book b1_0 where b1_0.amount>? order by b1_0.title
Query strings Hibernate statistics recorded for that call:
SELECT b FROM Book b INNER JOIN b.price p WHERE p.amount > :min ORDER BY b.title asc
the same derived query with subtitle asc NULLS LAST -> [Dune/Book one, Germinal/Novel, Ficciones/Stories, Cosmos/null]
SQL: select b1_0.id,b1_0.isbn,b1_0.amount,b1_0.currency,b1_0.published_on,b1_0.subtitle,b1_0.title from book b1_0 where b1_0.amount>? order by b1_0.subtitle asc nulls last,b1_0.id
findByIsbn(missing) -> Optional.empty
findByTitleStartingWith("") with 5 rows -> throws org.springframework.dao.IncorrectResultSizeDataAccessException
Query did not return a unique result: 5 results were returned
@Query using || and left() -> Dune (978)