Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

HHH-6846 lock timeout is in milliseconds

  • Loading branch information...
commit dddc959311e20e3e9bf4e09281a037cc3e9ab9e1 1 parent 0c1569c
@stliu stliu authored
View
3  hibernate-entitymanager/src/main/java/org/hibernate/ejb/AbstractQueryImpl.java
@@ -211,8 +211,7 @@ else if ( SPEC_HINT_TIMEOUT.equals( hintName ) ) {
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 );
Please sign in to comment.
Something went wrong with that request. Please try again.