Skip to content

Commit

Permalink
HHH-15772 deprecate @Proxy and @polymorphism
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Nov 28, 2022
1 parent 77fe23d commit 0d295e9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
* 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@

/**
* 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* 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 {
Expand Down

0 comments on commit 0d295e9

Please sign in to comment.