HHH-15772 deprecate @Proxy and @Polymorphism
This commit is contained in:
parent
77fe23d7f9
commit
0d295e9f11
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue