File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
hibernate-core/src/main/java/org/hibernate/sql/exec/internal/lock Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 9
9
import org .hibernate .LockMode ;
10
10
import org .hibernate .LockOptions ;
11
11
import org .hibernate .Locking ;
12
- import org .hibernate .Timeouts ;
13
12
import org .hibernate .engine .spi .CollectionKey ;
14
13
import org .hibernate .engine .spi .EffectiveEntityGraph ;
15
14
import org .hibernate .engine .spi .EntityKey ;
@@ -202,7 +201,7 @@ private TableLock resolveTableLock(
202
201
private QueryOptions buildLockingOptions (ExecutionContext executionContext ) {
203
202
final QueryOptionsImpl lockingQueryOptions = new QueryOptionsImpl ();
204
203
lockingQueryOptions .getLockOptions ().setLockMode ( lockMode );
205
- lockingQueryOptions .getLockOptions ().setTimeout ( Timeouts . WAIT_FOREVER );
204
+ lockingQueryOptions .getLockOptions ().setTimeout ( lockTimeout );
206
205
lockingQueryOptions .getLockOptions ().setFollowOnStrategy ( Locking .FollowOn .DISALLOW );
207
206
if ( executionContext .getQueryOptions ().isReadOnly () == Boolean .TRUE ) {
208
207
lockingQueryOptions .setReadOnly ( true );
You can’t perform that action at this time.
0 commit comments