Skip to content

add some missing @Override annotations #2254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@
* @see org.hibernate.query.Query
*/
public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMutationQuery<R> {
@Override
String getQueryString();

@Override
String getComment();

@Override
ReactiveQuery<R> setComment(String comment);

ReactiveQuery<R> addQueryHint(String hint);
Expand All @@ -55,6 +58,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut

QueryOptions getQueryOptions();

@Override
ParameterMetadata getParameterMetadata();

@Override
Expand Down Expand Up @@ -98,18 +102,21 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @see #setParameter(int, Object, Type)
*/
@Override
<P> ReactiveQuery<R> setParameter(int parameter, P argument, Class<P> type);

/**
* Bind the given argument to an ordinal query parameter using the given
* {@link Type}.
*/
@Override
<P> ReactiveQuery<R> setParameter(int parameter, P argument, Type<P> type);

/**
* Bind an {@link Instant} value to the ordinal query parameter using
* just the portion indicated by the given {@link TemporalType}.
*/
@Override
ReactiveQuery<R> setParameter(int parameter, Instant argument, TemporalType temporalType);

/**
Expand All @@ -124,10 +131,13 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
@Override
ReactiveQuery<R> setParameter(int parameter, Calendar argument, TemporalType temporalType);

@Override
<T> ReactiveQuery<R> setParameter(QueryParameter<T> parameter, T argument);

@Override
<P> ReactiveQuery<R> setParameter(QueryParameter<P> parameter, P argument, Class<P> type);

@Override
<P> ReactiveQuery<R> setParameter(QueryParameter<P> parameter, P argument, Type<P> type);

@Override
Expand All @@ -139,8 +149,10 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
@Override
ReactiveQuery<R> setParameter(Parameter<Date> parameter, Date argument, TemporalType temporalType);

@Override
ReactiveQuery<R> setParameterList(String parameter, @SuppressWarnings("rawtypes") Collection arguments);

@Override
<P> ReactiveQuery<R> setParameterList(String parameter, Collection<? extends P> arguments, Class<P> javaType);

/**
Expand All @@ -152,6 +164,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(String parameter, Collection<? extends P> arguments, Type<P> type);

/**
Expand All @@ -165,6 +178,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
ReactiveQuery<R> setParameterList(String parameter, Object[] values);

/**
Expand All @@ -180,6 +194,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(String parameter, P[] arguments, Class<P> javaType);


Expand All @@ -192,6 +207,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(String parameter, P[] arguments, Type<P> type);

/**
Expand All @@ -205,6 +221,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
ReactiveQuery<R> setParameterList(int parameter, @SuppressWarnings("rawtypes") Collection arguments);

/**
Expand All @@ -220,6 +237,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(int parameter, Collection<? extends P> arguments, Class<P> javaType);

/**
Expand All @@ -231,6 +249,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(int parameter, Collection<? extends P> arguments, Type<P> type);

/**
Expand All @@ -244,6 +263,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
ReactiveQuery<R> setParameterList(int parameter, Object[] arguments);

/**
Expand All @@ -259,6 +279,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(int parameter, P[] arguments, Class<P> javaType);

/**
Expand All @@ -270,6 +291,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(int parameter, P[] arguments, Type<P> type);

/**
Expand All @@ -284,6 +306,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments);

/**
Expand All @@ -300,6 +323,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType);

/**
Expand All @@ -314,6 +338,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Type<P> type);

/**
Expand All @@ -329,6 +354,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments);

/**
Expand All @@ -345,6 +371,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments, Class<P> javaType);

/**
Expand All @@ -359,6 +386,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments, Type<P> type);

/**
Expand All @@ -370,6 +398,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
ReactiveQuery<R> setProperties(Object bean);

/**
Expand All @@ -381,6 +410,7 @@ public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMut
*
* @return {@code this}, for method chaining
*/
@Override
ReactiveQuery<R> setProperties(@SuppressWarnings("rawtypes") Map bean);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ default CompletionStage<List<R>> getReactiveResultList() {

CompletionStage<Optional<R>> reactiveUniqueResultOptional();

@Override
ReactiveSelectionQuery<R> setHint(String hintName, Object value);

// Covariant methods
Expand Down
Loading