Code example for TransactionAwareDataSourceProxy

0
        return new LazyConnectionDataSourceProxy(dataSource());
    } 
 
    @Bean 
    public TransactionAwareDataSourceProxy transactionAwareDataSource() {
        return new TransactionAwareDataSourceProxy(lazyConnectionDataSource());
    } 
 
    @Bean 
    public DataSourceTransactionManager transactionManager() {
        return new DataSourceTransactionManager(lazyConnectionDataSource());
    } 
 
    @Bean 
    public DataSourceConnectionProvider connectionProvider() { 
        return new DataSourceConnectionProvider(transactionAwareDataSource()); 
    } 
 
    @Bean 
    public JOOQToSpringExceptionTransformer jooqToSpringExceptionTransformer() {