File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hibernate-core/src/main/java/org/hibernate/sql/exec/internal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55package org .hibernate .sql .exec .internal ;
66
77import org .hibernate .CacheMode ;
8- import org .hibernate .engine .spi .SharedSessionContractImplementor ;
98import org .hibernate .query .spi .QueryOptions ;
9+ import org .hibernate .query .spi .QueryProducerImplementor ;
1010import org .hibernate .sql .exec .spi .ExecutionContext ;
1111
1212import static org .hibernate .internal .util .NullnessHelper .coalesceSuppliedValues ;
@@ -27,15 +27,15 @@ public static CacheMode resolveCacheMode(ExecutionContext executionContext) {
2727 return resolveCacheMode ( executionContext .getQueryOptions (), executionContext .getSession () );
2828 }
2929
30- public static CacheMode resolveCacheMode (QueryOptions options , SharedSessionContractImplementor session ) {
30+ public static CacheMode resolveCacheMode (QueryOptions options , QueryProducerImplementor session ) {
3131 return coalesceSuppliedValues (
3232 () -> options == null ? null : options .getCacheMode (),
3333 session ::getCacheMode ,
3434 () -> CacheMode .NORMAL
3535 );
3636 }
3737
38- public static CacheMode resolveCacheMode (CacheMode override , SharedSessionContractImplementor session ) {
38+ public static CacheMode resolveCacheMode (CacheMode override , QueryProducerImplementor session ) {
3939 return coalesceSuppliedValues (
4040 () -> override ,
4141 session ::getCacheMode ,
You can’t perform that action at this time.
0 commit comments