From 1ff2b4e176ed929e696688bf0f36a602f898203b Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 1 Oct 2022 13:05:55 +0200 Subject: [PATCH] deprecate @SelectBeforeUpdate since it's only useful with other already-deprecated functionality --- .../java/org/hibernate/annotations/SelectBeforeUpdate.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/annotations/SelectBeforeUpdate.java b/hibernate-core/src/main/java/org/hibernate/annotations/SelectBeforeUpdate.java index aa0e9ebfb9..8b177cee21 100644 --- a/hibernate-core/src/main/java/org/hibernate/annotations/SelectBeforeUpdate.java +++ b/hibernate-core/src/main/java/org/hibernate/annotations/SelectBeforeUpdate.java @@ -17,10 +17,13 @@ * should be fetched from the database when the entity is reattached using * {@link org.hibernate.Session#update(Object)}. * + * @deprecated Since {@link org.hibernate.Session#update(Object)} is deprecated + * * @author Steve Ebersole */ @Target( TYPE ) @Retention( RUNTIME ) +@Deprecated(since = "6.2") public @interface SelectBeforeUpdate { /** * @deprecated When {@code false}, this annotation has no effect.