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
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -439,12 +439,32 @@ In Hibernate 7, these SQL `UPDATE` statements only occur if the `@OrderColumn` i
439
439
Since Vibur and Proxool are no longer actively developed, support for these connection pools was removed.
440
440
Use Agroal or HikariCP instead.
441
441
442
+
== Converters incompatible with annotations
443
+
444
+
JPA ``AttributeConverter``s are incompatible with the annotations `@Id`, `@Version`, `@Enumerated`, `@Embedded`, `@Temporal` and all association-mapping annotations.
445
+
Previously, any converter applied to an attribute with an incompatible annotation was simply ignored.
446
+
Hibernate now reports an error in this situation.
447
+
448
+
This includes auto-applied converters.
449
+
To suppress the error for an auto-applied converter, use `@Convert(disableConversion=true)`.
450
+
451
+
== Deprecations
452
+
453
+
* `@Comment` is deprecated in favor of the JPA 3.2 `comment` members
454
+
* `@Comment` is deprecated in favor of the JPA 3.2 `@CheckConstraint` and `check` members
455
+
* `NullPrecedence` is deprecated in favor of JPA 3.2 `Nulls`
456
+
* `@FractionalSeconds` is deprecated in favor of JPA 3.2 `secondPrecision`
457
+
* `DynamicParameterizedType` is deprecated
458
+
* `Session.get()` is deprecated in favor of `find()`
459
+
* `@Cascade` and `org.hibernate.annotations.CascadeType` are deprecated in favor of JPA `cascade` and `CascadeType`
460
+
* `org.hibernate.annotations.FlushModeType` is deprecated in favor of `QueryFlushMode`
461
+
442
462
[[cleanup]]
443
463
== Cleanup
444
464
445
465
* Annotations
446
466
** Removed `@Persister`
447
-
** Removed `@Proxy` - see <<proxy-annotation>>
467
+
** Removed `@Proxy` -- see <<proxy-annotation>>
448
468
** Removed `@SelectBeforeUpdate`
449
469
** Removed `@DynamicInsert#value` and `@DynamicUpdate#value`
0 commit comments