Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Primary
- @Component
- public class CachedOracleDbUnitManagerImpl extends OracleDbUnitManagerImpl {
- private IDatabaseConnection dbUnitConn;
- @Autowired
- public CachedDbUnitManagerOracleServer(DataSource dataSource) {
- super(dataSource);
- }
- @Override
- protected IDatabaseConnection getDbUnitConnection()
- throws DatabaseUnitException, SQLException {
- if (dbUnitConn == null)
- dbUnitConn = super.getDbUnitConnection();
- return dbUnitConn;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement