diff --git a/hibernate-core/src/main/java/org/hibernate/Query.java b/hibernate-core/src/main/java/org/hibernate/Query.java index 50965c4f4d..6c68a3ab54 100644 --- a/hibernate-core/src/main/java/org/hibernate/Query.java +++ b/hibernate-core/src/main/java/org/hibernate/Query.java @@ -92,7 +92,7 @@ public interface Query extends TypedQuery, CommonQueryContract { * @see #setFirstResult(int) * @see #setHibernateFirstResult(int) * - * @deprecated {@link #setFirstResult(int)} should be used instead. + * @deprecated {@link #getFirstResult()} should be used instead. */ @Deprecated default Integer getHibernateFirstResult() { @@ -132,10 +132,10 @@ public interface Query extends TypedQuery, CommonQueryContract { * * @return the maximum number of query results, or {@code null} if uninitialized. * - * @see #setFirstResult(int) - * @see #setHibernateFirstResult(int) + * @see #setMaxResults(int) (int) + * @see #setHibernateMaxResults(int) (int) * - * @deprecated {@link #setFirstResult(int)} should be used instead. + * @deprecated {@link #setMaxResults(int)} should be used instead. */ @Deprecated default Integer getHibernateMaxResults() {