HHH-18554 deprecate @Cascade and CascadeType

This commit is contained in:
Gavin King 2024-09-10 23:07:37 +02:00
parent 30f2a2045d
commit d269637f77
2 changed files with 8 additions and 0 deletions

View File

@ -30,7 +30,11 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author Emmanuel Bernard
* @author Steve Ebersole
*
* @deprecated Use the JPA-defined
* {@link jakarta.persistence.CascadeType}
*/
@Deprecated(since = "7")
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Cascade {

View File

@ -30,7 +30,11 @@ import org.hibernate.ReplicationMode;
* </pre>
*
* @see Cascade
*
* @deprecated Use the JPA-defined
* {@link jakarta.persistence.CascadeType}
*/
@Deprecated(since = "7")
public enum CascadeType {
/**
* Includes all types listed here.