diff --git a/hibernate-core/src/main/java/org/hibernate/query/spi/QueryParameterBindings.java b/hibernate-core/src/main/java/org/hibernate/query/spi/QueryParameterBindings.java index ae62688059..c270c41041 100644 --- a/hibernate-core/src/main/java/org/hibernate/query/spi/QueryParameterBindings.java +++ b/hibernate-core/src/main/java/org/hibernate/query/spi/QueryParameterBindings.java @@ -91,6 +91,9 @@ public interface QueryParameterBindings { throw new NotYetImplementedFor6Exception( getClass() ); } + QueryKey.ParameterBindingsMemento NO_PARAMETER_BINDING_MEMENTO = new QueryKey.ParameterBindingsMemento(){ + }; + QueryParameterBindings NO_PARAM_BINDINGS = new QueryParameterBindings() { @Override public boolean isBound(QueryParameterImplementor parameter) { @@ -124,5 +127,10 @@ public interface QueryParameterBindings { public boolean hasAnyMultiValuedBindings() { return false; } + + @Override + public QueryKey.ParameterBindingsMemento generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext) { + return NO_PARAMETER_BINDING_MEMENTO; + } }; }