From a3f6ff7c491f9733392cc3e4737507ff6896beae Mon Sep 17 00:00:00 2001 From: asutosh936 Date: Sat, 28 Apr 2018 18:49:46 -0400 Subject: [PATCH] HHH-12517 - Updated Javadocs with correct parameter methods (cherry picked from commit bb91924) --- .../main/java/org/hibernate/query/Query.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/query/Query.java b/hibernate-core/src/main/java/org/hibernate/query/Query.java index f8a1dc539b..e4760e6d7f 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/Query.java +++ b/hibernate-core/src/main/java/org/hibernate/query/Query.java @@ -688,7 +688,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -706,7 +706,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -724,7 +724,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -742,7 +742,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -760,7 +760,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -778,7 +778,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -796,7 +796,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -814,7 +814,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -832,7 +832,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -850,7 +850,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -868,7 +868,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -886,7 +886,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -903,7 +903,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * @param val The bind value * * @return {@code this}, for method chaining - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -920,7 +920,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * @param val The bind value * * @return {@code this}, for method chaining - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -937,7 +937,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * @param val The bind value * * @return {@code this}, for method chaining - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -955,7 +955,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -973,7 +973,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -991,7 +991,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -1009,7 +1009,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -1027,7 +1027,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -1047,7 +1047,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated @@ -1063,7 +1063,7 @@ public interface Query extends TypedQuery, org.hibernate.Query, CommonQ * * @return {@code this}, for method chaining * - * @deprecated (since 5.2) use {@link #setParameter(int, Object)} or {@link #setParameter(int, Object, Type)} + * @deprecated (since 5.2) use {@link #setParameter(String, Object)} or {@link #setParameter(String, Object, Type)} * instead */ @Deprecated