SPRNET-1567 Assigning correct timeout

SPRNET-1567 HibernateTransactionManager assign incorrect connection
timeout
Now assigning the correct timeout to the correct property
This commit is contained in:
Mattias Öhrn
2014-02-27 08:57:38 +01:00
parent a74653215f
commit 09291a8216
2 changed files with 2 additions and 2 deletions

View File

@@ -436,7 +436,7 @@ namespace Spring.Data.NHibernate
ConnectionHolder conHolder = new ConnectionHolder(con, adoTx);
if (timeout != DefaultTransactionDefinition.TIMEOUT_DEFAULT)
{
conHolder.TimeoutInMillis = definition.TransactionTimeout;
conHolder.TimeoutInSeconds = timeout;
}
if (log.IsDebugEnabled)
{

View File

@@ -454,7 +454,7 @@ namespace Spring.Data.NHibernate
ConnectionHolder conHolder = new ConnectionHolder(con, adoTx);
if (timeout != DefaultTransactionDefinition.TIMEOUT_DEFAULT)
{
conHolder.TimeoutInMillis = definition.TransactionTimeout;
conHolder.TimeoutInSeconds = timeout;
}
if (log.IsDebugEnabled)
{