mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
Implemented QueryKey.ParameterBindingsMemento NO_PARAMETER_BINDING_MEMENTO
This commit is contained in:
parent
ac1123be05
commit
b2aca3c846
@ -91,6 +91,9 @@ default void visitBindings(BiConsumer<QueryParameterImplementor<?>, QueryParamet
|
||||
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 void validate() {
|
||||
public boolean hasAnyMultiValuedBindings() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public QueryKey.ParameterBindingsMemento generateQueryKeyMemento(SharedSessionContractImplementor persistenceContext) {
|
||||
return NO_PARAMETER_BINDING_MEMENTO;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user