mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
HHH-18960 Reverted mistakenly commited change
This commit is contained in:
parent
8e2b7b7bdf
commit
4e3735d0c0
@ -64,7 +64,6 @@
|
|||||||
import static java.beans.Introspector.decapitalize;
|
import static java.beans.Introspector.decapitalize;
|
||||||
import static java.lang.Boolean.FALSE;
|
import static java.lang.Boolean.FALSE;
|
||||||
import static java.util.Collections.emptyList;
|
import static java.util.Collections.emptyList;
|
||||||
import static java.util.Objects.requireNonNullElse;
|
|
||||||
import static java.util.stream.Collectors.toList;
|
import static java.util.stream.Collectors.toList;
|
||||||
import static javax.lang.model.util.ElementFilter.fieldsIn;
|
import static javax.lang.model.util.ElementFilter.fieldsIn;
|
||||||
import static javax.lang.model.util.ElementFilter.methodsIn;
|
import static javax.lang.model.util.ElementFilter.methodsIn;
|
||||||
@ -2741,13 +2740,11 @@ private void checkParameter(
|
|||||||
if ( queryParamType!=null
|
if ( queryParamType!=null
|
||||||
//TODO: arguments of functions get assigned "unknown" which sucks
|
//TODO: arguments of functions get assigned "unknown" which sucks
|
||||||
&& !"unknown".equals(queryParamType) ) {
|
&& !"unknown".equals(queryParamType) ) {
|
||||||
final String realQueryParamType =
|
|
||||||
requireNonNullElse( context.qualifiedNameForEntityName( queryParamType ), queryParamType );
|
|
||||||
if ( param.getName() != null ) {
|
if ( param.getName() != null ) {
|
||||||
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
|
checkNamedParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
|
||||||
}
|
}
|
||||||
else if ( param.getPosition() != null ) {
|
else if ( param.getPosition() != null ) {
|
||||||
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
|
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user