HHH-7348 - AbstractMultiTenantConnectionProvider not closing connections

This commit is contained in:
Steve Ebersole 2012-05-23 09:39:36 -05:00
parent 4b74517dcd
commit e1062cfa22
1 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,9 @@ import java.sql.SQLException;
import org.hibernate.service.UnknownUnwrapTypeException; import org.hibernate.service.UnknownUnwrapTypeException;
/** /**
* Basic support for {@link MultiTenantConnectionProvider} implementations using
* individual {@link ConnectionProvider} instances per tenant behind the scenes.
*
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public abstract class AbstractMultiTenantConnectionProvider implements MultiTenantConnectionProvider { public abstract class AbstractMultiTenantConnectionProvider implements MultiTenantConnectionProvider {
@ -52,7 +55,7 @@ public abstract class AbstractMultiTenantConnectionProvider implements MultiTena
@Override @Override
public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException { public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException {
selectConnectionProvider( tenantIdentifier ).getConnection(); selectConnectionProvider( tenantIdentifier ).closeConnection( connection );
} }
@Override @Override