HHH-6846 lock timeout is in milliseconds

This commit is contained in:
Strong Liu 2012-05-30 23:32:17 +08:00
parent 0c1569c4f4
commit dddc959311
1 changed files with 1 additions and 2 deletions

View File

@ -211,8 +211,7 @@ public abstract class AbstractQueryImpl<X> implements TypedQuery<X> {
applyTimeout( timeout );
}
else if ( AvailableSettings.LOCK_TIMEOUT.equals( hintName ) ) {
int timeout = (int)Math.round(ConfigurationHelper.getInteger( value ).doubleValue() / 1000.0 );
applyLockTimeout( timeout );
applyLockTimeout( ConfigurationHelper.getInteger( value ) );
}
else if ( HINT_COMMENT.equals( hintName ) ) {
applyComment( (String) value );