Skip to content

Commit be3fa3d

Browse files
committed
update migration guide
1 parent 01fdb6e commit be3fa3d

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

migration-guide.adoc

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,32 @@ In Hibernate 7, these SQL `UPDATE` statements only occur if the `@OrderColumn` i
439439
Since Vibur and Proxool are no longer actively developed, support for these connection pools was removed.
440440
Use Agroal or HikariCP instead.
441441

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+
442462
[[cleanup]]
443463
== Cleanup
444464

445465
* Annotations
446466
** Removed `@Persister`
447-
** Removed `@Proxy` - see <<proxy-annotation>>
467+
** Removed `@Proxy` -- see <<proxy-annotation>>
448468
** Removed `@SelectBeforeUpdate`
449469
** Removed `@DynamicInsert#value` and `@DynamicUpdate#value`
450470
** Removed `@Loader`

0 commit comments

Comments
 (0)