Skip to content

Commit 6616bde

Browse files
committed
extract a method
1 parent bc6d343 commit 6616bde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ public SessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
254254

255255
final DiagnosticEvent sessionOpenEvent = getEventMonitor().beginSessionOpenEvent();
256256
try {
257-
258257
persistenceContext = createPersistenceContext();
259258
actionQueue = createActionQueue();
260259

@@ -351,7 +350,10 @@ protected void applyLockOptionsHint(SelectionQuery<?> query) {
351350

352351
protected void applyQuerySettingsAndHints(Query<?> query) {
353352
applyQuerySettingsAndHints( (SelectionQuery<?>) query );
353+
applyLockTimeoutHint( query );
354+
}
354355

356+
private void applyLockTimeoutHint(Query<?> query) {
355357
final Integer specLockTimeout = LegacySpecHelper.getInteger(
356358
HINT_SPEC_LOCK_TIMEOUT,
357359
HINT_JAVAEE_LOCK_TIMEOUT,

0 commit comments

Comments
 (0)