Skip to content

Commit

Permalink
HHH-10950 - uniqueResultOptional fails for Query created from Criteri…
Browse files Browse the repository at this point in the history
…aQuery
  • Loading branch information
dreab8 committed Aug 2, 2016
1 parent 5cc9d26 commit e6c36a6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -583,7 +583,7 @@ public QueryImplementor<X> setParameterList(String name, Object[] values) {
}

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

0 comments on commit e6c36a6

Please sign in to comment.