You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migration-guide.adoc
+16-19Lines changed: 16 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -256,16 +256,24 @@ Relatedly, `org.hibernate.annotations.CascadeType#SAVE_UPDATE` has been removed
256
256
257
257
`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`
258
258
259
-
[[metamodel]]
260
-
=== Metamodel
259
+
[[load-fetch-graphs]]
260
+
=== org.hibernate.graph Package
261
261
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).
263
265
266
+
This package has been significantly re-engineered, and the impact of this effort includes:
264
267
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.
267
272
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>>.
269
277
270
278
271
279
[[removal-annotations]]
@@ -314,7 +322,9 @@ The effect can also often be mitigated using Hibernate's bytecode-based laziness
314
322
[[misc-api]]
315
323
=== Miscellaneous
316
324
325
+
* Removed `org.hibernate.Metamodel` in favor of `org.hibernate.metamodel.model.domain.JpaMetamodel`
317
326
* Removed `SqmQualifiedJoin` - all joins are qualified.
327
+
* Both `NaturalIdLoadAccess#using(Map)` and `NaturalIdMultiLoadAccess#compoundValue()` have been removed in favor of `Map#of()`
318
328
* Removed `Session.LockRequest` - use `LockOptions` instead
319
329
320
330
@@ -451,21 +461,8 @@ This includes auto-applied converters.
451
461
To suppress the error for an auto-applied converter, use `@Convert(disableConversion=true)`.
452
462
453
463
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.
465
464
466
-
Also, a key subgraph now always refers to a `Map` key, and never to an entity id.
467
465
468
-
We encourage migration to the use of the new JPA-standard operations.
469
466
470
467
[[create-query]]
471
468
=== Query with Implicit SELECT and No Explicit Result Type
0 commit comments