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,58 @@
== spring-data-commons: spring-data-commons-3.5.13.jar -> spring-data-commons-4.2.0.jar
moved:
org.springframework.data.mapping.PropertyPath -> org.springframework.data.core.PropertyPath
org.springframework.data.mapping.PropertyReferenceException -> org.springframework.data.core.PropertyReferenceException
org.springframework.data.repository.util.ReactiveWrappers -> org.springframework.data.core.ReactiveWrappers
org.springframework.data.util.ClassTypeInformation -> org.springframework.data.core.ClassTypeInformation
org.springframework.data.util.CustomCollectionRegistrar -> org.springframework.data.core.CustomCollectionRegistrar
org.springframework.data.util.CustomCollections -> org.springframework.data.core.CustomCollections
org.springframework.data.util.NullableWrapper -> org.springframework.data.core.NullableWrapper
org.springframework.data.util.NullableWrapperConverters -> org.springframework.data.core.NullableWrapperConverters
org.springframework.data.util.ReactiveWrappers -> org.springframework.data.core.ReactiveWrappers
org.springframework.data.util.TypeDiscoverer -> org.springframework.data.core.TypeDiscoverer
org.springframework.data.util.TypeInformation -> org.springframework.data.core.TypeInformation
no type of the same name in the new jar:
org.springframework.data.annotation.PersistenceConstructor
org.springframework.data.mapping.model.DefaultSpELExpressionEvaluator
org.springframework.data.mapping.model.SpELExpressionEvaluator
org.springframework.data.mapping.model.SpELExpressionParameterValueProvider
org.springframework.data.repository.query.ExtensionAwareQueryMethodEvaluationContextProvider
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider
org.springframework.data.repository.query.ReactiveExtensionAwareQueryMethodEvaluationContextProvider
org.springframework.data.repository.query.ReactiveQueryMethodEvaluationContextProvider
org.springframework.data.repository.query.SpelEvaluator
org.springframework.data.repository.query.SpelQueryContext
org.springframework.data.repository.util.ClassUtils
org.springframework.data.type.MethodsMetadata
org.springframework.data.type.classreading.MethodsMetadataReader
org.springframework.data.type.classreading.MethodsMetadataReaderFactory
org.springframework.data.util.CastUtils
== spring-data-jpa: spring-data-jpa-3.5.13.jar -> spring-data-jpa-4.2.0.jar
moved:
no type of the same name in the new jar:
org.springframework.data.jpa.repository.query.EmptyDeclaredQuery
org.springframework.data.jpa.repository.query.ExpressionBasedStringQuery
org.springframework.data.jpa.repository.query.JSqlParserUtils
org.springframework.data.jpa.repository.query.JpaQueryFactory
org.springframework.data.jpa.repository.query.QueryTransformers
org.springframework.data.jpa.repository.query.StringQuery
org.springframework.data.jpa.repository.support.QuerydslJpaRepository
== Boot types that tests and configuration import
-- boot3
org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest (spring-boot-test-autoconfigure-3.5.16.jar)
org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManager (spring-boot-test-autoconfigure-3.5.16.jar)
org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTestDatabase (spring-boot-test-autoconfigure-3.5.16.jar)
org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest (spring-boot-test-autoconfigure-3.5.16.jar)
org.springframework.boot.autoconfigure.domain.EntityScan (spring-boot-autoconfigure-3.5.16.jar)
org.springframework.boot.autoconfigure.orm.jpa.HibernatePropertiesCustomizer (spring-boot-autoconfigure-3.5.16.jar)
org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer (spring-boot-autoconfigure-3.5.16.jar)
JsonMapperBuilderCustomizer: not on this classpath
-- boot4
org.springframework.boot.data.jpa.test.autoconfigure.DataJpaTest (spring-boot-data-jpa-test-4.2.0.jar)
org.springframework.boot.jpa.test.autoconfigure.TestEntityManager (spring-boot-jpa-test-4.2.0.jar)
org.springframework.boot.jdbc.test.autoconfigure.AutoConfigureTestDatabase (spring-boot-jdbc-test-4.2.0.jar)
org.springframework.boot.webmvc.test.autoconfigure.WebMvcTest (spring-boot-webmvc-test-4.2.0.jar)
org.springframework.boot.persistence.autoconfigure.EntityScan (spring-boot-persistence-4.2.0.jar)
org.springframework.boot.hibernate.autoconfigure.HibernatePropertiesCustomizer (spring-boot-hibernate-4.2.0.jar)
Jackson2ObjectMapperBuilderCustomizer: not on this classpath
org.springframework.boot.jackson.autoconfigure.JsonMapperBuilderCustomizer (spring-boot-jackson-4.2.0.jar)
@@ -0,0 +1,15 @@
# Spring Boot 3.5.16
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:
[CRITERIA] 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
the same derived query with subtitle asc NULLS LAST -> throws java.lang.UnsupportedOperationException
Applying Null Precedence using Criteria Queries is not yet supported.
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)
@@ -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)
@@ -0,0 +1,4 @@
# Spring Boot 3.5.16
em.createQuery(...).getSingleResult() on no rows -> throws jakarta.persistence.NoResultException
No result found for query [select b from Book b where b.isbn = 'nope']
jakarta.persistence.TypedQuery declares getSingleResultOrNull() -> false
@@ -0,0 +1,4 @@
# Spring Boot 4.2.0
em.createQuery(...).getSingleResult() on no rows -> throws jakarta.persistence.NoResultException
No result found for query [select b from Book b where b.isbn = 'nope']
jakarta.persistence.TypedQuery declares getSingleResultOrNull() -> true
@@ -0,0 +1,10 @@
# Spring Boot 3.5.16
Hibernate 6.6.53.Final
native query column -> java.sql.Date
native query column -> java.time.OffsetDateTime
native query column -> java.sql.Time
read column 0 as java.sql.Date (old cast) -> 1965-08-01
save() of a new entity with a hand-assigned @GeneratedValue id -> throws org.springframework.orm.ObjectOptimisticLockingFailureException
Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.ankurm.jpamig.domain.Book#4242]
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.id=?
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.id=?
@@ -0,0 +1,11 @@
# Spring Boot 4.2.0
Hibernate 7.4.15.Final
native query column -> java.time.LocalDate
native query column -> java.time.OffsetDateTime
native query column -> java.time.LocalTime
read column 0 as java.sql.Date (old cast) -> throws java.lang.ClassCastException
class java.time.LocalDate cannot be cast to class java.sql.Date (java.time.LocalDate is in module java.base of loader 'bootstrap'; java.sql.Date is in module java.sql of loader 'platform')
save() of a new entity with a hand-assigned @GeneratedValue id -> throws org.springframework.orm.ObjectOptimisticLockingFailureException
Row was already updated or deleted by another transaction for entity [com.ankurm.jpamig.domain.Book with id '4242']
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.id=?
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.id=?
@@ -0,0 +1,7 @@
# Spring Boot 3.5.16
count(publishedBefore 1900) -> 2
count(titleContains(null) i.e. unrestricted) -> 5
spec.and((Specification) null) -> 2
Specification.where((Specification) null) -> 5
findBy(spec, fluent).count -> 2
Querydsl findAll(price > 10, title asc) -> [Cosmos, Ficciones, Germinal]
@@ -0,0 +1,9 @@
# Spring Boot 4.2.0
count(publishedBefore 1900) -> 2
count(titleContains(null) i.e. unrestricted) -> 5
spec.and((Specification) null) -> throws java.lang.IllegalArgumentException
Other specification must not be null
Specification.where((Specification) null) -> throws java.lang.IllegalArgumentException
Specification must not be null
findBy(spec, fluent).count -> 2
Querydsl findAll(price > 10, title asc) -> [Cosmos, Ficciones, Germinal]
@@ -0,0 +1,16 @@
# Spring Boot 3.5.16
-- ORDER BY title, id (both columns NOT NULL)
window 1: [Cosmos, Dune] hasNext=true
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 order by b1_0.title,b1_0.id fetch first ? rows only
next position keys: {id=22, title=Dune}
window 2: [Emma, Ficciones] hasNext=true
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.title>? or b1_0.title=? and b1_0.id>? order by b1_0.title,b1_0.id fetch first ? rows only
next position keys: {id=24, title=Ficciones}
window 3: [Germinal] hasNext=false
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.title>? or b1_0.title=? and b1_0.id>? order by b1_0.title,b1_0.id fetch first ? rows only
-- ORDER BY subtitle (nullable), id
window 1: [Cosmos, Emma] hasNext=true
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 order by b1_0.subtitle,b1_0.id fetch first ? rows only
window 2: [] hasNext=false
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.subtitle>? or b1_0.subtitle is null and b1_0.id>? order by b1_0.subtitle,b1_0.id fetch first ? rows only
rows seen: 2 of 5 [Cosmos/null, Emma/null]
@@ -0,0 +1,18 @@
# Spring Boot 4.2.0
-- ORDER BY title, id (both columns NOT NULL)
window 1: [Cosmos, Dune] hasNext=true
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 order by b1_0.title,b1_0.id fetch first ? rows only
next position keys: {id=22, title=Dune}
window 2: [Emma, Ficciones] hasNext=true
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.title>? or b1_0.title=? and b1_0.id>? order by b1_0.title,b1_0.id fetch first ? rows only
next position keys: {id=24, title=Ficciones}
window 3: [Germinal] hasNext=false
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.title>? or b1_0.title=? and b1_0.id>? order by b1_0.title,b1_0.id fetch first ? rows only
-- ORDER BY subtitle (nullable), id
window 1: [Cosmos, Emma] hasNext=true
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 order by b1_0.subtitle,b1_0.id fetch first ? rows only
window 2: [Dune, Germinal] hasNext=true
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.subtitle is not null or b1_0.subtitle is null and b1_0.id>? order by b1_0.subtitle,b1_0.id fetch first ? rows only
window 3: [Ficciones] hasNext=false
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.subtitle>? or b1_0.subtitle=? and b1_0.id>? order by b1_0.subtitle,b1_0.id fetch first ? rows only
rows seen: 5 of 5 [Cosmos/null, Emma/null, Dune/Book one, Germinal/Novel, Ficciones/Stories]
@@ -0,0 +1,12 @@
# Spring Boot 3.5.16
-- package marked @org.springframework.lang.NonNullApi
Book findByIsbn(missing) -> throws org.springframework.dao.EmptyResultDataAccessException
Result must not be null
Book findByIsbn(null) -> throws java.lang.IllegalArgumentException
Parameter isbn in LegacyNullRepository.findByIsbn must not be null
-- package marked @org.jspecify.annotations.NullMarked
Book findByIsbn(missing) -> null
Book findByIsbn(null) -> null
@Nullable Book findFirstByTitle(missing) -> null
findBySubtitle(@Nullable null).size -> 2
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.subtitle is null
@@ -0,0 +1,14 @@
# Spring Boot 4.2.0
-- package marked @org.springframework.lang.NonNullApi
Book findByIsbn(missing) -> throws org.springframework.dao.EmptyResultDataAccessException
Result must not be null
Book findByIsbn(null) -> throws java.lang.IllegalArgumentException
Parameter isbn in LegacyNullRepository.findByIsbn(java.lang.String) must not be null
-- package marked @org.jspecify.annotations.NullMarked
Book findByIsbn(missing) -> throws org.springframework.dao.EmptyResultDataAccessException
Result must not be null
Book findByIsbn(null) -> throws java.lang.IllegalArgumentException
Parameter isbn in JSpecifyRepository.findByIsbn(java.lang.String) must not be null
@Nullable Book findFirstByTitle(missing) -> null
findBySubtitle(@Nullable null).size -> 2
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.subtitle is null
@@ -0,0 +1,10 @@
# Spring Boot 3.5.16
Spring Boot 3.5.16, Spring Data JPA 3.5.13, Hibernate 6.6.53.Final, Java 25
beans of type EntityManager: [jpaSharedEM_entityManagerFactory, jpaSharedEM_AWC_entityManagerFactory]
getBean(EntityManager.class) is a Spring shared proxy -> true
create a bean with constructor parameter (EntityManager anyName) -> injected the shared proxy
-- a record annotated @Entity
buildSessionFactory() -> succeeded
persist and commit -> ok
find by id in a new session -> throws org.hibernate.InstantiationException
No default constructor for entity 'com.ankurm.jpamig.WiringTest$RecordEntity'
@@ -0,0 +1,10 @@
# Spring Boot 4.2.0
Spring Boot 4.2.0, Spring Data JPA 4.2.0, Hibernate 7.4.15.Final, Java 25
beans of type EntityManager: [entityManagerFactory, jpaSharedEM_entityManagerFactory]
getBean(EntityManager.class) is a Spring shared proxy -> true
create a bean with constructor parameter (EntityManager anyName) -> injected the shared proxy
-- a record annotated @Entity
buildSessionFactory() -> succeeded
persist and commit -> ok
find by id in a new session -> throws org.hibernate.InstantiationException
No default constructor for entity 'com.ankurm.jpamig.WiringTest$RecordEntity'
@@ -0,0 +1,10 @@
# Spring Boot 3.5.16
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"pageable":{"pageNumber":0,"pageSize":2,"sort":{"empty":false,"sorted":true,"unsorted":false},"offset":0,"paged":true,"unpaged":false},"last":false,"totalPages":3,"totalElements":5,"size":2,"number":0,"first":true,"sort":{"empty":false,"sorted":true,"unsorted":false},"numberOfElements":2,"empty":false}
GET /paged-model
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"page":{"size":2,"number":0,"totalElements":5,"totalPages":3}}
GET /slice
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"pageable":{"pageNumber":0,"pageSize":2,"sort":{"empty":false,"sorted":true,"unsorted":false},"offset":0,"paged":true,"unpaged":false},"size":2,"number":0,"first":true,"last":false,"sort":{"empty":false,"sorted":true,"unsorted":false},"numberOfElements":2,"empty":false}
GET /window
200 {"empty":false,"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"last":false}
log: WARN --- [o-auto-1-exec-1] ration$PageModule$WarningLoggingModifier : Serializing PageImpl instances as-is is not supported, meaning that there is no guarantee about the stability of the resulting JSON structure!
@@ -0,0 +1,10 @@
# Spring Boot 4.2.0
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"empty":false,"first":true,"last":false,"number":0,"numberOfElements":2,"pageable":{"offset":0,"pageNumber":0,"pageSize":2,"paged":true,"sort":{"empty":false,"sorted":true,"unsorted":false},"unpaged":false},"size":2,"sort":{"empty":false,"sorted":true,"unsorted":false},"totalElements":5,"totalPages":3}
GET /paged-model
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"page":{"size":2,"number":0,"totalElements":5,"totalPages":3}}
GET /slice
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"empty":false,"first":true,"last":false,"number":0,"numberOfElements":2,"pageable":{"offset":0,"pageNumber":0,"pageSize":2,"paged":true,"sort":{"empty":false,"sorted":true,"unsorted":false},"unpaged":false},"size":2,"sort":{"empty":false,"sorted":true,"unsorted":false}}
GET /window
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"empty":false,"last":false}
log: WARN --- [o-auto-1-exec-1] ration$PageModule$WarningLoggingModifier : Serializing PageImpl instances as-is is not supported, meaning that there is no guarantee about the stability of the resulting JSON structure!
@@ -0,0 +1,7 @@
# Spring Boot 3.5.16
POST /books {"title":"Dune","copies":3,"signed":true}
200 {"title":"Dune","copies":3,"signed":true}
POST /books {"title":"Dune"}
200 {"title":"Dune","copies":0,"signed":false}
POST /books {"title":"Dune","copies":null,"signed":false}
200 {"title":"Dune","copies":0,"signed":false}
@@ -0,0 +1,7 @@
# Spring Boot 4.2.0
POST /books {"title":"Dune","copies":3,"signed":true}
200 {"title":"Dune","copies":3,"signed":true}
POST /books {"title":"Dune"}
400 {"timestamp":"...","status":400,"error":"Bad Request","path":"/books"}
POST /books {"title":"Dune","copies":null,"signed":false}
400 {"timestamp":"...","status":400,"error":"Bad Request","path":"/books"}
@@ -0,0 +1,4 @@
# Spring Boot 3.5.16
spring.data.web.pageable.serialization-mode=via-dto
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"page":{"size":2,"number":0,"totalElements":5,"totalPages":3}}
@@ -0,0 +1,4 @@
# Spring Boot 4.2.0
spring.data.web.pageable.serialization-mode=via-dto
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"page":{"size":2,"number":0,"totalElements":5,"totalPages":3}}
@@ -0,0 +1,5 @@
# Spring Boot 3.5.16
record BookTitle(title, isbn), derived -> [BookTitle[title=Cosmos, isbn=978-0001]]
SQL: select b1_0.title,b1_0.isbn from book b1_0 where b1_0.isbn like ? escape '\'
record BookAmount via @Query constructor expression -> BookAmount[title=Cosmos, amount=14.50]
SQL: select b1_0.title,b1_0.amount from book b1_0 where b1_0.isbn=?
@@ -0,0 +1,5 @@
# Spring Boot 4.2.0
record BookTitle(title, isbn), derived -> [BookTitle[title=Cosmos, isbn=978-0001]]
SQL: select b1_0.title,b1_0.isbn from book b1_0 where b1_0.isbn like ? escape '\'
record BookAmount via @Query constructor expression -> BookAmount[title=Cosmos, amount=14.50]
SQL: select b1_0.title,b1_0.amount from book b1_0 where b1_0.isbn=?
@@ -0,0 +1,3 @@
# Spring Boot 3.5.16
application startup -> FAILED
root cause org.springframework.data.mapping.PropertyReferenceException: No property 'amount' found for type 'Item'
@@ -0,0 +1,4 @@
# Spring Boot 4.2.0
application startup -> succeeded
first call of findByTitle("x") -> throws org.springframework.data.core.PropertyReferenceException
No property 'amount' found for type 'Item'
@@ -0,0 +1,6 @@
# Spring Boot 3.5.16
spring.jackson.use-jackson2-defaults=true
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"pageable":{"pageNumber":0,"pageSize":2,"sort":{"empty":false,"sorted":true,"unsorted":false},"offset":0,"paged":true,"unpaged":false},"last":false,"totalPages":3,"totalElements":5,"size":2,"number":0,"first":true,"sort":{"empty":false,"sorted":true,"unsorted":false},"numberOfElements":2,"empty":false}
POST /books {"title":"Dune"}
200 {"title":"Dune","copies":0,"signed":false}
@@ -0,0 +1,6 @@
# Spring Boot 4.2.0
spring.jackson.use-jackson2-defaults=true
GET /page
200 {"content":[{"id":1,"title":"Cosmos","isbn":"978-0001","publishedOn":"1980-09-01"},{"id":2,"title":"Dune","isbn":"978-0002","publishedOn":"1965-08-01"}],"pageable":{"pageNumber":0,"pageSize":2,"sort":{"empty":false,"sorted":true,"unsorted":false},"offset":0,"paged":true,"unpaged":false},"last":false,"totalPages":3,"totalElements":5,"size":2,"number":0,"first":true,"sort":{"empty":false,"sorted":true,"unsorted":false},"numberOfElements":2,"empty":false}
POST /books {"title":"Dune"}
200 {"title":"Dune","copies":0,"signed":false}
@@ -0,0 +1,6 @@
# Spring Boot 3.5.16
window 1: [Dune, Germinal] hasNext=true
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 order by b1_0.subtitle,b1_0.id fetch first ? rows only
window 2: [Ficciones] hasNext=false
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.subtitle>? or b1_0.subtitle=? and b1_0.id>? order by b1_0.subtitle,b1_0.id fetch first ? rows only
rows seen: 3 of 5 [Dune/Book one, Germinal/Novel, Ficciones/Stories]
@@ -0,0 +1,6 @@
# Spring Boot 4.2.0
window 1: [Dune, Germinal] hasNext=true
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 order by b1_0.subtitle,b1_0.id fetch first ? rows only
window 2: [Ficciones] hasNext=false
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.subtitle>? or b1_0.subtitle=? and b1_0.id>? order by b1_0.subtitle,b1_0.id fetch first ? rows only
rows seen: 3 of 5 [Dune/Book one, Germinal/Novel, Ficciones/Stories]
@@ -0,0 +1,10 @@
# Spring Boot 3.5.16
window 1: [Dune, Germinal] hasNext=true
window 2: [Ficciones] hasNext=false
rows seen: 3 of 5 [Dune/Book one, Germinal/Novel, Ficciones/Stories]
-- same scroll with an explicit Sort: subtitle ASC NULLS_FIRST, id
rows seen -> throws java.lang.UnsupportedOperationException
Applying Null Precedence using Criteria Queries is not yet supported.
-- same scroll with an explicit Sort: subtitle ASC NULLS_LAST, id
rows seen -> throws java.lang.UnsupportedOperationException
Applying Null Precedence using Criteria Queries is not yet supported.
@@ -0,0 +1,8 @@
# Spring Boot 4.2.0
window 1: [Dune, Germinal] hasNext=true
window 2: [Ficciones] hasNext=false
rows seen: 3 of 5 [Dune/Book one, Germinal/Novel, Ficciones/Stories]
-- same scroll with an explicit Sort: subtitle ASC NULLS_FIRST, id
rows seen -> 5 of 5 [Cosmos/null, Emma/null, Dune/Book one, Germinal/Novel, Ficciones/Stories]
-- same scroll with an explicit Sort: subtitle ASC NULLS_LAST, id
rows seen -> 5 of 5 [Dune/Book one, Germinal/Novel, Ficciones/Stories, Cosmos/null, Emma/null]
@@ -0,0 +1,81 @@
--- boot3
+++ boot4
@@ -12,18 +12,27 @@
void deleteInBatch(Iterable<T>) @Deprecated
void flush()
== org.springframework.data.jpa.repository.JpaSpecificationExecutor
+ List<T> findAll(PredicateSpecification<T>)
List<T> findAll(Specification<T>)
List<T> findAll(Specification<T>, Sort)
+ Optional<T> findOne(PredicateSpecification<T>)
Optional<T> findOne(Specification<T>)
Page<T> findAll(Specification<T>, Pageable)
Page<T> findAll(Specification<T>, Specification<T>, Pageable)
+ R findBy(PredicateSpecification<T>, Function<? super JpaSpecificationExecutor.SpecificationFluentQuery<S>, R>)
R findBy(Specification<T>, Function<? super JpaSpecificationExecutor.SpecificationFluentQuery<S>, R>)
+ boolean exists(PredicateSpecification<T>)
boolean exists(Specification<T>)
+ long count(PredicateSpecification<T>)
long count(Specification<T>)
- long delete(Specification<T>)
+ long delete(DeleteSpecification<T>)
+ long delete(PredicateSpecification<T>)
+ long update(UpdateSpecification<T>)
== org.springframework.data.jpa.domain.Specification
Predicate toPredicate(Root<T>, CriteriaQuery<?>, CriteriaBuilder)
+ Specification<T> and(PredicateSpecification<T>)
Specification<T> and(Specification<T>)
+ Specification<T> or(PredicateSpecification<T>)
Specification<T> or(Specification<T>)
static Specification<T> allOf(Iterable<Specification<T>>)
static Specification<T> allOf(Specification<T>[])
@@ -31,10 +40,45 @@
static Specification<T> anyOf(Specification<T>[])
static Specification<T> not(Specification<T>)
static Specification<T> unrestricted()
- static Specification<T> where(Specification<T>) @Deprecated
+ static Specification<T> where(PredicateSpecification<T>)
+ static Specification<T> where(Specification<T>)
== org.springframework.data.jpa.domain.PredicateSpecification
- NOT ON THIS CLASSPATH
+ Predicate toPredicate(From<?, T>, CriteriaBuilder)
+ PredicateSpecification<T> and(PredicateSpecification<T>)
+ PredicateSpecification<T> or(PredicateSpecification<T>)
+ static PredicateSpecification<T> allOf(Iterable<PredicateSpecification<T>>)
+ static PredicateSpecification<T> allOf(PredicateSpecification<T>[])
+ static PredicateSpecification<T> anyOf(Iterable<PredicateSpecification<T>>)
+ static PredicateSpecification<T> anyOf(PredicateSpecification<T>[])
+ static PredicateSpecification<T> not(PredicateSpecification<T>)
+ static PredicateSpecification<T> unrestricted()
+ static PredicateSpecification<T> where(PredicateSpecification<T>)
== org.springframework.data.jpa.domain.DeleteSpecification
- NOT ON THIS CLASSPATH
+ DeleteSpecification<T> and(DeleteSpecification<T>)
+ DeleteSpecification<T> and(PredicateSpecification<T>)
+ DeleteSpecification<T> or(DeleteSpecification<T>)
+ DeleteSpecification<T> or(PredicateSpecification<T>)
+ Predicate toPredicate(Root<T>, CriteriaDelete<T>, CriteriaBuilder)
+ static DeleteSpecification<T> allOf(DeleteSpecification<T>[])
+ static DeleteSpecification<T> allOf(Iterable<DeleteSpecification<T>>)
+ static DeleteSpecification<T> anyOf(DeleteSpecification<T>[])
+ static DeleteSpecification<T> anyOf(Iterable<DeleteSpecification<T>>)
+ static DeleteSpecification<T> not(DeleteSpecification<T>)
+ static DeleteSpecification<T> unrestricted()
+ static DeleteSpecification<T> where(DeleteSpecification<T>)
+ static DeleteSpecification<T> where(PredicateSpecification<T>)
== org.springframework.data.jpa.domain.UpdateSpecification
- NOT ON THIS CLASSPATH
+ Predicate toPredicate(Root<T>, CriteriaUpdate<T>, CriteriaBuilder)
+ UpdateSpecification<T> and(PredicateSpecification<T>)
+ UpdateSpecification<T> and(UpdateSpecification<T>)
+ UpdateSpecification<T> or(PredicateSpecification<T>)
+ UpdateSpecification<T> or(UpdateSpecification<T>)
+ static UpdateSpecification.UpdateOperation<T> update(UpdateSpecification.UpdateOperation<T>)
+ static UpdateSpecification<T> allOf(Iterable<UpdateSpecification<T>>)
+ static UpdateSpecification<T> allOf(UpdateSpecification<T>[])
+ static UpdateSpecification<T> anyOf(Iterable<UpdateSpecification<T>>)
+ static UpdateSpecification<T> anyOf(UpdateSpecification<T>[])
+ static UpdateSpecification<T> not(UpdateSpecification<T>)
+ static UpdateSpecification<T> unrestricted()
+ static UpdateSpecification<T> where(PredicateSpecification<T>)
+ static UpdateSpecification<T> where(UpdateSpecification<T>)
@@ -0,0 +1,84 @@
== org.springframework.data.jpa.repository.JpaRepository
List<S> findAll(Example<S>)
List<S> findAll(Example<S>, Sort)
List<S> saveAllAndFlush(Iterable<S>)
S saveAndFlush(S)
T getById(ID) @Deprecated
T getOne(ID) @Deprecated
T getReferenceById(ID)
void deleteAllByIdInBatch(Iterable<ID>)
void deleteAllInBatch()
void deleteAllInBatch(Iterable<T>)
void deleteInBatch(Iterable<T>) @Deprecated
void flush()
== org.springframework.data.jpa.repository.JpaSpecificationExecutor
List<T> findAll(PredicateSpecification<T>)
List<T> findAll(Specification<T>)
List<T> findAll(Specification<T>, Sort)
Optional<T> findOne(PredicateSpecification<T>)
Optional<T> findOne(Specification<T>)
Page<T> findAll(Specification<T>, Pageable)
Page<T> findAll(Specification<T>, Specification<T>, Pageable)
R findBy(PredicateSpecification<T>, Function<? super JpaSpecificationExecutor.SpecificationFluentQuery<S>, R>)
R findBy(Specification<T>, Function<? super JpaSpecificationExecutor.SpecificationFluentQuery<S>, R>)
boolean exists(PredicateSpecification<T>)
boolean exists(Specification<T>)
long count(PredicateSpecification<T>)
long count(Specification<T>)
long delete(DeleteSpecification<T>)
long delete(PredicateSpecification<T>)
long update(UpdateSpecification<T>)
== org.springframework.data.jpa.domain.Specification
Predicate toPredicate(Root<T>, CriteriaQuery<?>, CriteriaBuilder)
Specification<T> and(PredicateSpecification<T>)
Specification<T> and(Specification<T>)
Specification<T> or(PredicateSpecification<T>)
Specification<T> or(Specification<T>)
static Specification<T> allOf(Iterable<Specification<T>>)
static Specification<T> allOf(Specification<T>[])
static Specification<T> anyOf(Iterable<Specification<T>>)
static Specification<T> anyOf(Specification<T>[])
static Specification<T> not(Specification<T>)
static Specification<T> unrestricted()
static Specification<T> where(PredicateSpecification<T>)
static Specification<T> where(Specification<T>)
== org.springframework.data.jpa.domain.PredicateSpecification
Predicate toPredicate(From<?, T>, CriteriaBuilder)
PredicateSpecification<T> and(PredicateSpecification<T>)
PredicateSpecification<T> or(PredicateSpecification<T>)
static PredicateSpecification<T> allOf(Iterable<PredicateSpecification<T>>)
static PredicateSpecification<T> allOf(PredicateSpecification<T>[])
static PredicateSpecification<T> anyOf(Iterable<PredicateSpecification<T>>)
static PredicateSpecification<T> anyOf(PredicateSpecification<T>[])
static PredicateSpecification<T> not(PredicateSpecification<T>)
static PredicateSpecification<T> unrestricted()
static PredicateSpecification<T> where(PredicateSpecification<T>)
== org.springframework.data.jpa.domain.DeleteSpecification
DeleteSpecification<T> and(DeleteSpecification<T>)
DeleteSpecification<T> and(PredicateSpecification<T>)
DeleteSpecification<T> or(DeleteSpecification<T>)
DeleteSpecification<T> or(PredicateSpecification<T>)
Predicate toPredicate(Root<T>, CriteriaDelete<T>, CriteriaBuilder)
static DeleteSpecification<T> allOf(DeleteSpecification<T>[])
static DeleteSpecification<T> allOf(Iterable<DeleteSpecification<T>>)
static DeleteSpecification<T> anyOf(DeleteSpecification<T>[])
static DeleteSpecification<T> anyOf(Iterable<DeleteSpecification<T>>)
static DeleteSpecification<T> not(DeleteSpecification<T>)
static DeleteSpecification<T> unrestricted()
static DeleteSpecification<T> where(DeleteSpecification<T>)
static DeleteSpecification<T> where(PredicateSpecification<T>)
== org.springframework.data.jpa.domain.UpdateSpecification
Predicate toPredicate(Root<T>, CriteriaUpdate<T>, CriteriaBuilder)
UpdateSpecification<T> and(PredicateSpecification<T>)
UpdateSpecification<T> and(UpdateSpecification<T>)
UpdateSpecification<T> or(PredicateSpecification<T>)
UpdateSpecification<T> or(UpdateSpecification<T>)
static UpdateSpecification.UpdateOperation<T> update(UpdateSpecification.UpdateOperation<T>)
static UpdateSpecification<T> allOf(Iterable<UpdateSpecification<T>>)
static UpdateSpecification<T> allOf(UpdateSpecification<T>[])
static UpdateSpecification<T> anyOf(Iterable<UpdateSpecification<T>>)
static UpdateSpecification<T> anyOf(UpdateSpecification<T>[])
static UpdateSpecification<T> not(UpdateSpecification<T>)
static UpdateSpecification<T> unrestricted()
static UpdateSpecification<T> where(PredicateSpecification<T>)
static UpdateSpecification<T> where(UpdateSpecification<T>)
@@ -0,0 +1,123 @@
=== DeleteBySpecification.java on boot3
compiles
=== DeleteBySpecification.java on boot4
DOES NOT COMPILE
broken/boot3-style/DeleteBySpecification.java:7: error: no suitable method found for delete(Specification<Book>)
1 error
=== HibernateSessionApi.java on boot3
compiles
broken/boot3-style/HibernateSessionApi.java:6: warning: [deprecation] Where in org.hibernate.annotations has been deprecated
broken/boot3-style/HibernateSessionApi.java:10: warning: [deprecation] save(Object) in Session has been deprecated
broken/boot3-style/HibernateSessionApi.java:11: warning: [deprecation] saveOrUpdate(Object) in Session has been deprecated
broken/boot3-style/HibernateSessionApi.java:12: warning: [deprecation] update(Object) in Session has been deprecated
broken/boot3-style/HibernateSessionApi.java:13: warning: [deprecation] delete(Object) in Session has been deprecated
5 warnings
=== HibernateSessionApi.java on boot4
DOES NOT COMPILE
broken/boot3-style/HibernateSessionApi.java:3: error: cannot find symbol
symbol: class Where
location: package org.hibernate.annotations
broken/boot3-style/HibernateSessionApi.java:6: error: cannot find symbol
symbol: class Where
location: class HibernateSessionApi
broken/boot3-style/HibernateSessionApi.java:10: error: cannot find symbol
symbol: method save(Book)
location: variable session of type Session
broken/boot3-style/HibernateSessionApi.java:11: error: cannot find symbol
symbol: method saveOrUpdate(Book)
location: variable session of type Session
broken/boot3-style/HibernateSessionApi.java:12: error: cannot find symbol
symbol: method update(Book)
location: variable session of type Session
broken/boot3-style/HibernateSessionApi.java:13: error: cannot find symbol
symbol: method delete(Book)
location: variable session of type Session
6 errors
=== JacksonCustomizer.java on boot3
compiles
=== JacksonCustomizer.java on boot4
DOES NOT COMPILE
broken/boot3-style/JacksonCustomizer.java:1: error: package org.springframework.boot.autoconfigure.jackson does not exist
broken/boot3-style/JacksonCustomizer.java:4: error: cannot find symbol
symbol: class Jackson2ObjectMapperBuilderCustomizer
location: class JacksonCustomizer
2 errors
=== PackageMoves.java on boot3
compiles
=== PackageMoves.java on boot4
DOES NOT COMPILE
broken/boot3-style/PackageMoves.java:1: error: cannot find symbol
symbol: class PropertyPath
location: package org.springframework.data.mapping
broken/boot3-style/PackageMoves.java:2: error: cannot find symbol
symbol: class PropertyReferenceException
location: package org.springframework.data.mapping
broken/boot3-style/PackageMoves.java:3: error: cannot find symbol
symbol: class TypeInformation
location: package org.springframework.data.util
broken/boot3-style/PackageMoves.java:6: error: cannot find symbol
symbol: class TypeInformation
location: class PackageMoves
broken/boot3-style/PackageMoves.java:7: error: cannot find symbol
symbol: class PropertyPath
location: class PackageMoves
broken/boot3-style/PackageMoves.java:8: error: cannot find symbol
symbol: class PropertyReferenceException
location: class PackageMoves
broken/boot3-style/PackageMoves.java:6: error: cannot find symbol
symbol: variable TypeInformation
location: class PackageMoves
7 errors
=== QueryDslPaging.java on boot3
compiles
broken/boot3-style/QueryDslPaging.java:5: warning: [deprecation] QPageRequest(int,int) in QPageRequest has been deprecated
1 warning
=== QueryDslPaging.java on boot4
DOES NOT COMPILE
broken/boot3-style/QueryDslPaging.java:5: error: QPageRequest(int,int,OrderSpecifier<?>...) has private access in QPageRequest
1 error
=== RemovedAnnotations.java on boot3
compiles
broken/boot3-style/RemovedAnnotations.java:4: warning: [removal] PersistenceConstructor in org.springframework.data.annotation has been deprecated and marked for removal
1 warning
=== RemovedAnnotations.java on boot4
DOES NOT COMPILE
broken/boot3-style/RemovedAnnotations.java:1: error: cannot find symbol
symbol: class PersistenceConstructor
location: package org.springframework.data.annotation
broken/boot3-style/RemovedAnnotations.java:4: error: cannot find symbol
symbol: class PersistenceConstructor
location: class RemovedAnnotations
2 errors
=== StillCompiles.java on boot3
compiles
broken/boot3-style/StillCompiles.java:7: warning: [deprecation] getOne(ID) in JpaRepository has been deprecated
broken/boot3-style/StillCompiles.java:8: warning: [deprecation] getById(ID) in JpaRepository has been deprecated
broken/boot3-style/StillCompiles.java:9: warning: [deprecation] deleteInBatch(Iterable<T>) in JpaRepository has been deprecated
3 warnings
=== StillCompiles.java on boot4
compiles
broken/boot3-style/StillCompiles.java:7: warning: [deprecation] getOne(ID) in JpaRepository has been deprecated
broken/boot3-style/StillCompiles.java:8: warning: [deprecation] getById(ID) in JpaRepository has been deprecated
broken/boot3-style/StillCompiles.java:9: warning: [deprecation] deleteInBatch(Iterable<T>) in JpaRepository has been deprecated
3 warnings
=== TestSliceImports.java on boot3
compiles
=== TestSliceImports.java on boot4
DOES NOT COMPILE
broken/boot3-style/TestSliceImports.java:1: error: package org.springframework.boot.autoconfigure.domain does not exist
broken/boot3-style/TestSliceImports.java:2: error: cannot find symbol
symbol: class AutoConfigureTestDatabase
location: package org.springframework.boot.test.autoconfigure.jdbc
broken/boot3-style/TestSliceImports.java:3: error: package org.springframework.boot.test.autoconfigure.orm.jpa does not exist
broken/boot3-style/TestSliceImports.java:4: error: package org.springframework.boot.test.autoconfigure.orm.jpa does not exist
broken/boot3-style/TestSliceImports.java:5: error: package org.springframework.boot.test.autoconfigure.web.servlet does not exist
5 errors
=== WhereNull.java on boot3
compiles
broken/boot3-style/WhereNull.java:6: warning: [removal] <T>where(Specification<T>) in Specification has been deprecated and marked for removal
1 warning
=== WhereNull.java on boot4
DOES NOT COMPILE
broken/boot3-style/WhereNull.java:6: error: reference to where is ambiguous
1 error
@@ -0,0 +1,10 @@
=== old artifactId hibernate-jpamodelgen, version ${hibernate.version}
BUILD SUCCESS
Book_ generated: 1 file(s)
=== old artifactId hibernate-jpamodelgen, no <version> (relying on Boot's BOM)
BUILD FAILURE
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.16.0:compile (default-compile) on project data-jpa-3-to-4-boot4: Resolution of annotationProcessorPath dependencies failed: Cannot find version for annotation processor path 'org.hibernate.orm:hibernate-jpamodelgen.jar'. The version needs to be either provided directly in the plugin configuration or via dependency mana
Book_ generated: 0 file(s)
=== new artifactId hibernate-processor, no <version>
BUILD SUCCESS
Book_ generated: 1 file(s)
+11
View File
@@ -0,0 +1,11 @@
=== com.querydsl 5.1.0 + record @Embeddable, Boot 3.5
BUILD FAILURE
Fatal error compiling: java.lang.IllegalArgumentException: Illegal type: com.ankurm.jpamig.domain.Amount -> [Help 1]
=== com.querydsl 5.1.0 + record @Embeddable, Boot 4.2
BUILD FAILURE
Fatal error compiling: java.lang.IllegalArgumentException: Illegal type: com.ankurm.jpamig.domain.Amount -> [Help 1]
=== io.github.openfeign.querydsl 7.8 + record @Embeddable, Boot 4.2
BUILD SUCCESS
=== io.github.openfeign.querydsl 7.8, whole test suite, Boot 4.2
BUILD SUCCESS
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 1
@@ -0,0 +1,5 @@
spring-data-jpa-3.5.13.jar: class files containing the string spring.data.jpa.query.native.parser: 1
spring-data-jpa-4.2.0.jar: class files containing the string spring.data.jpa.query.native.parser: 0
=== how 3.5 reads it (javap -c)
ldc // String spring.data.jpa.query.native.parser
invokestatic // Method org/springframework/core/SpringProperties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
@@ -0,0 +1,3 @@
# Spring Boot 3.5.16
books.delete(specification) -> 2
SQL: delete from book b1_0 where b1_0.published_on<?
@@ -0,0 +1,7 @@
# Spring Boot 4.2.0
books.count(predicate) -> 2
SQL: select count(b1_0.id) from book b1_0 where b1_0.published_on<?
books.update(UpdateSpecification) -> 1
SQL: update book b1_0 set title=? where b1_0.title=?
books.delete(predicate) -> 2
SQL: delete from book b1_0 where b1_0.published_on<?
@@ -0,0 +1,3 @@
# Spring Boot 3.5.16
spring.dao.exceptiontranslation.enabled=false
PersistenceExceptionTranslationPostProcessor beans: 0
@@ -0,0 +1,3 @@
# Spring Boot 4.2.0
spring.dao.exceptiontranslation.enabled=false
PersistenceExceptionTranslationPostProcessor beans: 1
@@ -0,0 +1,5 @@
# Spring Boot 3.5.16
hibernate.query.native.prefer_jdbc_datetime_types=true
native query column -> java.sql.Date
native query column -> java.time.OffsetDateTime
native query column -> java.sql.Time
@@ -0,0 +1,5 @@
# Spring Boot 4.2.0
hibernate.query.native.prefer_jdbc_datetime_types=true
native query column -> java.sql.Date
native query column -> java.time.OffsetDateTime
native query column -> java.sql.Time