mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-01 23:39:15 +00:00
HHH-15977 - Deprecate @Persister
This commit is contained in:
parent
43316e9101
commit
d7201815d5
@ -500,6 +500,11 @@ For entities, the custom persister must implement the https://docs.jboss.org/hib
|
|||||||
|
|
||||||
For collections, the custom persister must implement the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/persister/collection/CollectionPersister.html[`CollectionPersister`] interface.
|
For collections, the custom persister must implement the https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/persister/collection/CollectionPersister.html[`CollectionPersister`] interface.
|
||||||
|
|
||||||
|
NOTE: Supplying a custom persister has been allowed historically, but has never been fully supported.
|
||||||
|
Hibernate 6 provides better, alternative ways to accomplish the use cases for a custom persister. As
|
||||||
|
of 6.2 `@Persister` has been formally deprecated.
|
||||||
|
|
||||||
|
|
||||||
[[entity-persister-mapping]]
|
[[entity-persister-mapping]]
|
||||||
.Entity persister mapping
|
.Entity persister mapping
|
||||||
====
|
====
|
||||||
|
@ -18,9 +18,12 @@
|
|||||||
* Specify a custom persister.
|
* Specify a custom persister.
|
||||||
*
|
*
|
||||||
* @author Shawn Clowater
|
* @author Shawn Clowater
|
||||||
|
*
|
||||||
|
* @deprecated Alternative depends on reason for custom persister
|
||||||
*/
|
*/
|
||||||
@Target({TYPE, METHOD, FIELD})
|
@Target({TYPE, METHOD, FIELD})
|
||||||
@Retention(RUNTIME)
|
@Retention(RUNTIME)
|
||||||
|
@Deprecated( since = "6" )
|
||||||
public @interface Persister {
|
public @interface Persister {
|
||||||
/**
|
/**
|
||||||
* The custom persister class.
|
* The custom persister class.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user