Skip to content

Commit e3194e2

Browse files
committed
migration guide structure
1 parent 9b3ea72 commit e3194e2

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

migration-guide.adoc

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,24 @@ Relatedly, `org.hibernate.annotations.CascadeType#SAVE_UPDATE` has been removed
256256

257257
`Session#delete` methods has been removed in favor of `Session#remove` (via `EntityManager`). Relatedly, `org.hibernate.annotations.CascadeType#DELETE` was removed in favor of `org.hibernate.annotations.CascadeType#REMOVE`
258258

259-
[[metamodel]]
260-
=== Metamodel
259+
[[load-fetch-graphs]]
260+
=== org.hibernate.graph Package
261261

262-
`org.hibernate.Metamodel` has been removed in favor of `org.hibernate.metamodel.model.domain.JpaMetamodel`
262+
The `EntityGraph` API was enhanced in JPA 3.2, and made much more useful.
263+
The incubating package `org.hibernate.graph` contains extensions to that API, which have been significantly impacted by the migration to JPA 3.2, and by the addition of new functionality.
264+
Furthermore, some legacy operations were declared with incorrect generic type signatures (by both JPA, and by Hibernate).
263265

266+
This package has been significantly re-engineered, and the impact of this effort includes:
264267

265-
[[session-by-natural-id]]
266-
=== Session#byNaturalId
268+
- some breaking changes to type signatures, and
269+
- a number of deprecations of legacy operations which are now covered by JPA.
270+
271+
Also, a key subgraph now always refers to a `Map` key, and never to an entity id.
267272

268-
Both `NaturalIdLoadAccess#using(Map)` and `NaturalIdMultiLoadAccess#compoundValue()` have been removed in favor of `Map#of()`
273+
We encourage migration to the use of the new JPA-standard operations.
274+
275+
Or, alternatively, when building graphs, consider Hibernate's support for
276+
textual link:{user-guide-url}#fetching-strategies-dynamic-fetching-entity-graph-parsing[graph parsing]. See also <<NamedEntityGraph>>.
269277

270278

271279
[[removal-annotations]]
@@ -314,7 +322,9 @@ The effect can also often be mitigated using Hibernate's bytecode-based laziness
314322
[[misc-api]]
315323
=== Miscellaneous
316324

325+
* Removed `org.hibernate.Metamodel` in favor of `org.hibernate.metamodel.model.domain.JpaMetamodel`
317326
* Removed `SqmQualifiedJoin` - all joins are qualified.
327+
* Both `NaturalIdLoadAccess#using(Map)` and `NaturalIdMultiLoadAccess#compoundValue()` have been removed in favor of `Map#of()`
318328
* Removed `Session.LockRequest` - use `LockOptions` instead
319329

320330

@@ -451,21 +461,8 @@ This includes auto-applied converters.
451461
To suppress the error for an auto-applied converter, use `@Convert(disableConversion=true)`.
452462

453463

454-
[[load-fetch-graphs]]
455-
=== org.hibernate.graph Package
456-
457-
The `EntityGraph` API was enhanced in JPA 3.2, and made much more useful.
458-
The incubating package `org.hibernate.graph` contains extensions to that API, which have been significantly impacted by the migration to JPA 3.2, and by the addition of new functionality.
459-
Furthermore, some legacy operations were declared with incorrect generic type signatures (by both JPA, and by Hibernate).
460-
461-
This package has been significantly re-engineered, and the impact of this effort includes:
462-
463-
- some breaking changes to type signatures, and
464-
- a number of deprecations of legacy operations which are now covered by JPA.
465464

466-
Also, a key subgraph now always refers to a `Map` key, and never to an entity id.
467465

468-
We encourage migration to the use of the new JPA-standard operations.
469466

470467
[[create-query]]
471468
=== Query with Implicit SELECT and No Explicit Result Type

0 commit comments

Comments
 (0)