From 232ad00f5c447511c6cd8a5b4c0b8c7f4aafdb9e Mon Sep 17 00:00:00 2001 From: Gavin King Date: Sat, 29 Jan 2022 08:57:25 +0100 Subject: [PATCH] add some missing (since="6.0") --- .../main/java/org/hibernate/Interceptor.java | 18 +++++++++--------- .../java/org/hibernate/classic/Lifecycle.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/Interceptor.java b/hibernate-core/src/main/java/org/hibernate/Interceptor.java index 2b0bad6a58..d9d1417bcb 100644 --- a/hibernate-core/src/main/java/org/hibernate/Interceptor.java +++ b/hibernate-core/src/main/java/org/hibernate/Interceptor.java @@ -62,7 +62,7 @@ public interface Interceptor { * * @deprecated use {@link #onLoad(Object, Object, Object[], String[], Type[])} */ - @Deprecated + @Deprecated(since = "6.0") default boolean onLoad(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException { return false; @@ -116,7 +116,7 @@ public interface Interceptor { * * @deprecated use {@link #onFlushDirty(Object, Object, Object[], Object[], String[], Type[])} */ - @Deprecated + @Deprecated(since = "6.0") default boolean onFlushDirty( Object entity, Serializable id, @@ -177,7 +177,7 @@ public interface Interceptor { * * @deprecated use {@link #onSave(Object, Object, Object[], String[], Type[])} */ - @Deprecated + @Deprecated(since = "6.0") default boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException { return false; @@ -217,7 +217,7 @@ public interface Interceptor { * * @deprecated use {@link #onDelete(Object, Object, Object[], String[], Type[])} */ - @Deprecated + @Deprecated(since = "6.0") default void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException {} @@ -249,7 +249,7 @@ public interface Interceptor { * * @deprecated use {@link #onCollectionRecreate(Object, Object)} */ - @Deprecated + @Deprecated(since = "6.0") default void onCollectionRecreate(Object collection, Serializable key) throws CallbackException {} /** @@ -276,7 +276,7 @@ public interface Interceptor { * * @deprecated use {@link #onCollectionRemove(Object, Object)} */ - @Deprecated + @Deprecated(since = "6.0") default void onCollectionRemove(Object collection, Serializable key) throws CallbackException {} /** @@ -303,7 +303,7 @@ public interface Interceptor { * * @deprecated use {@link #onCollectionUpdate(Object, Object)} */ - @Deprecated + @Deprecated(since = "6.0") default void onCollectionUpdate(Object collection, Serializable key) throws CallbackException {} /** @@ -375,7 +375,7 @@ public interface Interceptor { * * @deprecated use {@link #findDirty(Object, Object, Object[], Object[], String[], Type[])} */ - @Deprecated + @Deprecated(since = "6.0") default int[] findDirty( Object entity, Serializable id, @@ -467,7 +467,7 @@ public interface Interceptor { * * @deprecated use {@link #getEntity(String, Object)} */ - @Deprecated + @Deprecated(since = "6.0") default Object getEntity(String entityName, Serializable id) throws CallbackException { return null; } diff --git a/hibernate-core/src/main/java/org/hibernate/classic/Lifecycle.java b/hibernate-core/src/main/java/org/hibernate/classic/Lifecycle.java index 6e2bda1d0c..e61aedc018 100644 --- a/hibernate-core/src/main/java/org/hibernate/classic/Lifecycle.java +++ b/hibernate-core/src/main/java/org/hibernate/classic/Lifecycle.java @@ -122,6 +122,6 @@ public interface Lifecycle { * * @deprecated use {@link #onLoad(Session, Object)} */ - @Deprecated + @Deprecated(since = "6.0") default void onLoad(Session s, Serializable id) {} }