hibernate-orm/migration-guide.adoc

44 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-10-06 10:32:26 -04:00
= 6.4 Migration Guide
2015-08-20 15:29:48 -04:00
:toc:
:toclevels: 4
2022-12-22 11:29:51 -05:00
:docsBase: https://docs.jboss.org/hibernate/orm
2023-10-06 10:32:26 -04:00
:versionDocBase: {docsBase}/6.4
2022-12-22 11:29:51 -05:00
:userGuideBase: {versionDocBase}/userguide/html_single/Hibernate_User_Guide.html
:javadocsBase: {versionDocBase}/javadocs
2023-10-06 10:32:26 -04:00
This guide discusses migration to Hibernate ORM version 6.4. For migration from
2015-08-20 15:29:48 -04:00
earlier versions, see any other pertinent migration guides as well.
2023-10-06 10:32:26 -04:00
* link:{docsBase}/6.3/migration-guide/migration-guide.html[6.3 Migration guide]
* link:{docsBase}/6.2/migration-guide/migration-guide.html[6.2 Migration guide]
2022-12-22 11:29:51 -05:00
* link:{docsBase}/6.1/migration-guide/migration-guide.html[6.1 Migration guide]
* link:{docsBase}/6.0/migration-guide/migration-guide.html[6.0 Migration guide]
[[soft-delete]]
== Soft Delete
6.4 adds support for soft deletes, using the new `@SoftDelete` annotation.
See the link:{userGuideBase}#soft-delete[User Guide] for details.
In previous versions, support for soft-deletes was somewhat implementable using
a combination of any or all of event-listeners, filters, `@Where`, etc.
Applications using such implementations are encouraged to switch.
[[custom-tenant-identifier-type]]
== Custom tenant identifier type
The `CurrentTenantIdentifierResolver` and `MultiTenantConnectionProvider` SPIs were generified to support custom tenant identifier types.
Both types now accept a type parameter that represents the tenant identifier type.
Methods that were accepting or returning a tenant identifier value of type `String` were changed to use the type variable.
Applications can migrate by specifying the type parameter `<String>` when extending `CurrentTenantIdentifierResolver`
or one of the `MultiTenantConnectionProvider` subtypes.
[[IdGeneratorStrategyInterpreter]]
== Removed IdGeneratorStrategyInterpreter
`IdGeneratorStrategyInterpreter` has been deprecated since 6.0 and has been removed to simplify id generator internals.