HHH-10950 - uniqueResultOptional fails for Query created from CriteriaQuery
This commit is contained in:
parent
5cc9d26d0d
commit
e6c36a6666
|
@ -583,7 +583,7 @@ public class CriteriaQueryTypeQueryAdapter<X> implements QueryImplementor<X> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public <P> org.hibernate.Query<X> setParameter(QueryParameter<P> parameter, P value, Type type) {
|
||||
public <P> QueryImplementor<X> setParameter(QueryParameter<P> parameter, P value, Type type) {
|
||||
final ExplicitParameterInfo parameterInfo = resolveParameterInfo( parameter );
|
||||
if ( parameterInfo.isNamed() ) {
|
||||
jpqlQuery.setParameter( parameterInfo.getName(), value, type );
|
||||
|
|
Loading…
Reference in New Issue