HHH-15324 Hibernate internally use Query#setHint with legacy java.persistence properties causing deprecation log warnings

This commit is contained in:
Andrea Boriero 2022-06-14 16:48:14 +02:00 committed by Christian Beikov
parent 9a5ee1a6df
commit 4d070f24f9
1 changed files with 0 additions and 2 deletions

View File

@ -310,7 +310,6 @@ public class SessionImpl
); );
if ( specQueryTimeout != null ) { if ( specQueryTimeout != null ) {
query.setHint( HINT_SPEC_QUERY_TIMEOUT, specQueryTimeout ); query.setHint( HINT_SPEC_QUERY_TIMEOUT, specQueryTimeout );
query.setHint( HINT_JAVAEE_QUERY_TIMEOUT, specQueryTimeout );
} }
} }
@ -326,7 +325,6 @@ public class SessionImpl
); );
if ( specLockTimeout != null ) { if ( specLockTimeout != null ) {
query.setHint( HINT_SPEC_LOCK_TIMEOUT, specLockTimeout ); query.setHint( HINT_SPEC_LOCK_TIMEOUT, specLockTimeout );
query.setHint( HINT_JAVAEE_LOCK_TIMEOUT, specLockTimeout );
} }
} }