HHH-10950 - uniqueResultOptional fails for Query created from CriteriaQuery

This commit is contained in:
Andrea Boriero 2016-08-02 11:54:55 +02:00
parent 5cc9d26d0d
commit e6c36a6666
1 changed files with 1 additions and 1 deletions

View File

@ -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 );