Skip to content

Commit 89638bb

Browse files
committed
Use a more specific interface (QueryProducerImplementor) in JdbcExecHelper to help with build reproducibility
1 parent dc20229 commit 89638bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hibernate-core/src/main/java/org/hibernate/sql/exec/internal/JdbcExecHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
package org.hibernate.sql.exec.internal;
66

77
import org.hibernate.CacheMode;
8-
import org.hibernate.engine.spi.SharedSessionContractImplementor;
98
import org.hibernate.query.spi.QueryOptions;
9+
import org.hibernate.query.spi.QueryProducerImplementor;
1010
import org.hibernate.sql.exec.spi.ExecutionContext;
1111

1212
import 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,

0 commit comments

Comments
 (0)