data-jpa-3-to-4: add the audit prompt quoted in the post; correct which outputs were repeated on 4.0 and 4.1

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:34:57 +05:30
co-authored by Claude Sonnet 5.5
parent 7a2bcc1eb6
commit c3c0a389ff
2 changed files with 23 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
You are auditing a Java/Spring persistence layer for a Spring Data JPA 3.5 -> 4.x
migration (Spring Boot 4, Hibernate 7, Jakarta Persistence 3.2, Jackson 3).
Report each finding as file:line with the exact replacement, ordered by risk.
1. Imports of org.springframework.data.mapping.PropertyPath or PropertyReferenceException,
or org.springframework.data.util.TypeInformation (moved to org.springframework.data.core).
2. @PersistenceConstructor, new QPageRequest(..), hibernate-jpamodelgen.
3. repository.delete(specification), Specification.where(null), .and(null) / .or(null).
4. Hibernate Session.save / saveOrUpdate / update / delete, and @Where.
5. @NullMarked packages: finders with a non-Optional, non-@Nullable return type that
can find nothing.
6. Native queries whose results are cast to java.sql.Date, Time or Timestamp.
7. Record projections on derived queries whose component names are not entity properties.
8. Window / keyset queries sorted by a nullable column.
9. Controllers returning Page, Slice or Window directly; tests that compare raw JSON.
10. Request bodies with primitive fields that clients may omit.
11. Old Boot 3 test imports, EntityScan imports, Jackson2ObjectMapperBuilderCustomizer,
spring.dao.exceptiontranslation.enabled, and the system property
spring.data.jpa.query.native.parser.
Do not report a finding you cannot point to in a file.