HHH-15772 deprecate @Proxy and @Polymorphism

This commit is contained in:
Gavin 2022-11-28 10:50:54 +01:00 committed by Gavin King
parent 77fe23d7f9
commit 0d295e9f11
3 changed files with 7 additions and 4 deletions

View File

@ -45,11 +45,12 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* hierarchy, as defied by the JPA specification. "Implicit"
* polymorphism is about queries that span multiple such
* entity inheritance hierarchies.
* <p>
* This annotation is hardly ever useful.
*
* @deprecated This annotation is hardly ever useful.
*
* @author Steve Ebersole
*/
@Deprecated(since = "6.2")
@Target( TYPE )
@Retention( RUNTIME )
public @interface Polymorphism {

View File

@ -14,10 +14,12 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Allows the proxy class of an entity class to be explicitly specified.
* This annotation is almost never useful.
*
* @deprecated This annotation is almost never useful.
*
* @author Emmanuel Bernard
*/
@Deprecated(since = "6.2")
@Target(TYPE)
@Retention(RUNTIME)
public @interface Proxy {

View File

@ -21,7 +21,7 @@ import java.lang.annotation.RetentionPolicy;
* annotations, for example,
* {@link jakarta.persistence.OneToMany#targetEntity()}
*/
@Deprecated
@Deprecated(since = "6.2")
@java.lang.annotation.Target({ElementType.FIELD, ElementType.METHOD})
@Retention( RetentionPolicy.RUNTIME )
public @interface Target {