File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/org/springframework/data/repository Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ public Class<?> getReturnedDomainClass(Method method) {
113
113
return ReactiveWrapperConverters .unwrapWrapperTypes (returnType ).getType ();
114
114
}
115
115
116
- return QueryExecutionConverters .unwrapWrapperTypes (returnType ).getType ();
116
+ return ReactiveWrapperConverters .unwrapWrapperTypes (QueryExecutionConverters .unwrapWrapperTypes (returnType ))
117
+ .getType ();
117
118
}
118
119
119
120
/*
Original file line number Diff line number Diff line change 30
30
import org .springframework .data .domain .Sort ;
31
31
import org .springframework .data .repository .util .ClassUtils ;
32
32
import org .springframework .data .repository .util .QueryExecutionConverters ;
33
+ import org .springframework .data .repository .util .ReactiveWrapperConverters ;
33
34
import org .springframework .data .util .ClassTypeInformation ;
34
35
import org .springframework .data .util .Lazy ;
35
36
import org .springframework .data .util .TypeInformation ;
@@ -228,7 +229,8 @@ private static boolean isDynamicProjectionParameter(MethodParameter parameter) {
228
229
TypeInformation <?> bound = parameterTypes .getTypeArguments ().get (0 );
229
230
TypeInformation <Object > returnType = ClassTypeInformation .fromReturnTypeOf (method );
230
231
231
- return bound .equals (QueryExecutionConverters .unwrapWrapperTypes (returnType ));
232
+ return bound
233
+ .equals (ReactiveWrapperConverters .unwrapWrapperTypes (QueryExecutionConverters .unwrapWrapperTypes (returnType )));
232
234
}
233
235
234
236
/**
@@ -239,7 +241,8 @@ private static boolean isDynamicProjectionParameter(MethodParameter parameter) {
239
241
* @see QueryExecutionConverters
240
242
*/
241
243
private static boolean isWrapped (MethodParameter parameter ) {
242
- return QueryExecutionConverters .supports (parameter .getParameterType ());
244
+ return QueryExecutionConverters .supports (parameter .getParameterType ())
245
+ || ReactiveWrapperConverters .supports (parameter .getParameterType ());
243
246
}
244
247
245
248
/**
You can’t perform that action at this time.
0 commit comments