Skip to content

Commit

Permalink
HHH-17377 - Migrate to JPA 3.2
Browse files Browse the repository at this point in the history
https://hibernate.atlassian.net/browse/HHH-17377

Test compilation success!!  95 test failures next
  • Loading branch information
sebersole committed Nov 17, 2023
1 parent ec6e52e commit a89be03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions migration-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ earlier versions, see any other pertinent migration guides as well.
7.0 migrates to JPA 3.2 which is fairly disruptive, mainly around:

* type parameters
* Affects much of the Criteria API - especially roots, joins, paths
* Affects much of the Graph API -
* org.hibernate.graph.Graph.addAttributeNode(java.lang.String) defines a return while
** Affects much of the Criteria API - especially roots, joins, paths
** Affects much of the Graph API -
*** org.hibernate.graph.Graph.addAttributeNode(java.lang.String) defines a return while
1jakarta.persistence.Graph.addAttributeNode(java.lang.String)` does not.
* new JPA features colliding with previous Hibernate extension features
* `Nulls` (JPA) v. `NullPrecedence` (Hibernate), including JPA's new `Order#getNullPrecedence()` returning `Nulls`
** `Nulls` (JPA) v. `NullPrecedence` (Hibernate), including JPA's new `Order#getNullPrecedence()` returning `Nulls`
colliding with Hibernate's `SqmSortSpecification#getNullPrecedence` returning `NullPrecedence`. Hibernate's form
was renamed to `SqmSortSpecification#getHibernateNullPrecedence` to avoid the collision.
* `SchemaManager` is now also a JPA contract exposed as `EntityManagerFactory#getSchemaManager` which leads to type issues for
** `SchemaManager` is now also a JPA contract exposed as `EntityManagerFactory#getSchemaManager` which leads to type issues for
Hibernate's `SessionFactory#getSchemaManager`. Hibernate's `SchemaManager` now extends the new JPA `SchemaManager`.
But that is a bytecode incompatibility.
* JPA has added support in its Graph API for things Hibernate has supported for some time. Some of those are collisions
** JPA has added support in its Graph API for things Hibernate has supported for some time. Some of those are collisions
requiring changes to the Hibernate API.


Expand Down

0 comments on commit a89be03

Please sign in to comment.