HHH-18960 Reverted mistakenly commited change

This commit is contained in:
Čedomir Igaly 2024-12-18 19:03:44 +01:00 committed by Gavin King
parent 8e2b7b7bdf
commit 4e3735d0c0
1 changed files with 2 additions and 5 deletions

View File

@ -64,7 +64,6 @@ import jakarta.persistence.AccessType;
import static java.beans.Introspector.decapitalize;
import static java.lang.Boolean.FALSE;
import static java.util.Collections.emptyList;
import static java.util.Objects.requireNonNullElse;
import static java.util.stream.Collectors.toList;
import static javax.lang.model.util.ElementFilter.fieldsIn;
import static javax.lang.model.util.ElementFilter.methodsIn;
@ -2741,13 +2740,11 @@ public class AnnotationMetaEntity extends AnnotationMeta {
if ( queryParamType!=null
//TODO: arguments of functions get assigned "unknown" which sucks
&& !"unknown".equals(queryParamType) ) {
final String realQueryParamType =
requireNonNullElse( context.qualifiedNameForEntityName( queryParamType ), queryParamType );
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 ) {
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, realQueryParamType);
checkOrdinalParameter(param, paramNames, paramTypes, method, mirror, value, queryParamType);
}
}
}