From 50363dcc2c0c67da971176181d6accfeb556a81c Mon Sep 17 00:00:00 2001 From: Gavin King Date: Thu, 25 Feb 2021 11:04:17 +0100 Subject: [PATCH] remove deprecated CascadeType.EVICT --- .../main/java/org/hibernate/annotations/CascadeType.java | 8 -------- .../src/main/java/org/hibernate/cfg/AnnotationBinder.java | 1 - 2 files changed, 9 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/CascadeType.java b/hibernate-core/src/main/java/org/hibernate/annotations/CascadeType.java index 497fec3930..b5e873e6e2 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/CascadeType.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/CascadeType.java @@ -63,14 +63,6 @@ public enum CascadeType { */ LOCK, - /** - * JPA originally planned on calling DETACH EVICT. - * - * @deprecated use {@link javax.persistence.CascadeType#DETACH} - */ - @Deprecated - EVICT, - /** * Corresponds to {@link javax.persistence.CascadeType#DETACH}. */ diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java b/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java index 6d82702245..41a1b685d4 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java @@ -3488,7 +3488,6 @@ public final class AnnotationBinder { case REPLICATE: cascade.append( "," ).append( "replicate" ); break; - case EVICT: case DETACH: cascade.append( "," ).append( "evict" ); break;