From 399a1d00716838bea21b4bbf25ab919a0a3e807d Mon Sep 17 00:00:00 2001 From: Gavin King Date: Thu, 12 Dec 2024 23:22:45 +0100 Subject: [PATCH] add forRemoval=true in two places --- .../src/main/java/org/hibernate/annotations/Source.java | 3 +-- .../src/main/java/org/hibernate/annotations/Target.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/Source.java b/hibernate-core/src/main/java/org/hibernate/annotations/Source.java index 6ba19a8c8f..a4dedbd3c3 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/Source.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/Source.java @@ -4,7 +4,6 @@ */ package org.hibernate.annotations; -import org.hibernate.Remove; import org.hibernate.generator.internal.SourceGeneration; import java.lang.annotation.Retention; @@ -42,7 +41,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; * * @deprecated use {@link CurrentTimestamp} instead */ -@Deprecated(since = "6.2") @Remove +@Deprecated(since = "6.2", forRemoval = true) @Target({ METHOD, FIELD }) @Retention(RUNTIME) @ValueGenerationType(generatedBy = SourceGeneration.class) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/Target.java b/hibernate-core/src/main/java/org/hibernate/annotations/Target.java index f3cddd8b14..1be635d4cf 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/Target.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/Target.java @@ -21,7 +21,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; * annotations, for example, * {@link jakarta.persistence.OneToMany#targetEntity()} */ -@Deprecated(since = "6.2") +@Deprecated(since = "6.2", forRemoval = true) @java.lang.annotation.Target({FIELD, METHOD}) @Retention(RUNTIME) public @interface Target {