HHH-6846 lock timeout is in milliseconds
This commit is contained in:
parent
0c1569c4f4
commit
dddc959311
|
@ -211,8 +211,7 @@ public abstract class AbstractQueryImpl<X> implements TypedQuery<X> {
|
||||||
applyTimeout( timeout );
|
applyTimeout( timeout );
|
||||||
}
|
}
|
||||||
else if ( AvailableSettings.LOCK_TIMEOUT.equals( hintName ) ) {
|
else if ( AvailableSettings.LOCK_TIMEOUT.equals( hintName ) ) {
|
||||||
int timeout = (int)Math.round(ConfigurationHelper.getInteger( value ).doubleValue() / 1000.0 );
|
applyLockTimeout( ConfigurationHelper.getInteger( value ) );
|
||||||
applyLockTimeout( timeout );
|
|
||||||
}
|
}
|
||||||
else if ( HINT_COMMENT.equals( hintName ) ) {
|
else if ( HINT_COMMENT.equals( hintName ) ) {
|
||||||
applyComment( (String) value );
|
applyComment( (String) value );
|
||||||
|
|
Loading…
Reference in New Issue