mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 23:09:13 +00:00
Fix Query#getParameters() returning an empty Set when the query has no parameters
This commit is contained in:
parent
ba558503a8
commit
6ebceedf48
@ -177,7 +177,10 @@ public <P> ProcedureParameterImplementor<P> resolve(Parameter<P> param) {
|
||||
@Override
|
||||
public Set<? extends QueryParameter<?>> getRegistrations() {
|
||||
//noinspection unchecked
|
||||
return parameters.stream().collect( Collectors.toSet());
|
||||
if ( parameters == null ) {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
return parameters.stream().collect( Collectors.toSet() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -4,7 +4,7 @@
|
||||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
*/
|
||||
package org.hibernate.test.jpa.procedure;
|
||||
package org.hibernate.orm.test.jpa.procedure;
|
||||
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.EntityManager;
|
Loading…
x
Reference in New Issue
Block a user