HHH-10796 - Fix org.hibernate.query.Query<R> setProperties(Map map); set to null parameters not contained in the map
This commit is contained in:
parent
6027d8319e
commit
35cefeda2f
|
@ -763,7 +763,9 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
|
||||||
for ( String paramName : namedParameterNames ) {
|
for ( String paramName : namedParameterNames ) {
|
||||||
final Object object = map.get( paramName );
|
final Object object = map.get( paramName );
|
||||||
if ( object == null ) {
|
if ( object == null ) {
|
||||||
setParameter( paramName, null, determineType( paramName, null ) );
|
if ( map.containsKey( paramName ) ) {
|
||||||
|
setParameter( paramName, null, determineType( paramName, null ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Class retType = object.getClass();
|
Class retType = object.getClass();
|
||||||
|
|
Loading…
Reference in New Issue