Draft: Establish JPA 4 compatibility baseline with minimal changes#4296
Draft
oscarfanchin wants to merge 15 commits into
Draft
Draft: Establish JPA 4 compatibility baseline with minimal changes#4296oscarfanchin wants to merge 15 commits into
oscarfanchin wants to merge 15 commits into
Conversation
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
Signed-off-by: Oscar Fanchin <oscar.fanchin@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft provides an exploratory compatibility baseline for Jakarta Persistence 4 and Hibernate ORM 8.
The goal is to compile and run the existing Spring Data JPA functionality against this new baseline, validate the migration direction, and identify follow-up work.
This is not a complete or final support statement.
Scope
Support for new Jakarta Persistence 4 features is intentionally out of scope.
Intentional exclusions
Dependency baseline
This branch currently uses snapshot dependencies where required because the relevant Hibernate ORM and Jakarta Persistence APIs are still evolving.
More stable milestone builds are available, but they do not yet provide the compatibility surface required by this draft.
Current status
Test command:
mvn -pl spring-data-jpa -Pall-dbs clean process-test-classes
surefire:test@unit-test
surefire:test@integration-test
surefire:test@mysql-test
surefire:test@postgres-test
surefire:test@oracle-test
-Dmaven.test.failure.ignore=true -U
Full Surefire reports from the test run are attached.
surefire-reports.zip
AOT note
The remaining AOT failures originate from named-query discovery in
QueriesFactory.With the current Hibernate ORM 8 baseline, untyped named queries may be represented by a
TypedQueryReferencewhose result type isnull.QueriesFactorycurrently probes multiple result-type candidates, includingnull, when looking up named queries. Passing thenullcandidate toEntityManagerFactory.getNamedQueries(Class<R>)results in an NPE.Removing the
nullcandidate avoids the NPE but does not solve the underlying problem: untyped named queries can no longer be discovered. This causes AOT repository method contributions to be omitted and produces cascading metadata and integration-test failures.This behavior needs further discussion and dedicated follow-up work, potentially involving coordination with Hibernate ORM.
Related issues
Related to #4187
Related to #4197