Consider enclosing class for dynamic projection parameter detection.
We now consider the enclosing class to determine correct generic typing. Closes #3020
This commit is contained in:
@@ -146,7 +146,7 @@ public abstract class QuerydslPredicateArgumentResolverSupport {
|
||||
throw new IllegalArgumentException("Method parameter is not backed by a method");
|
||||
}
|
||||
|
||||
return detectDomainType(TypeInformation.fromReturnTypeOf(method));
|
||||
return detectDomainType(TypeInformation.fromReturnTypeOf(method, parameter.getContainingClass()));
|
||||
}
|
||||
|
||||
private static TypeInformation<?> detectDomainType(TypeInformation<?> source) {
|
||||
|
||||
Reference in New Issue
Block a user