@Override
    public Connection get() {
        Connection connection = DataSourceUtils.getConnection(dataSource);
        if (!DataSourceUtils.isConnectionTransactional(connection, dataSource)) {
            throw new IllegalStateException("Connection is not transactional");
        }
        return connection;
    }
{@code SpringConnectionProvider} is a Provider implementation which provides a transactionally bound connection

<p>Usage example</p>
<pre>
{@code
Provider<Connection> provider = new SpringConnectionProvider(dataSource());
SQLQueryFactory queryFactory = SQLQueryFactory(configuration, provider);
}
</pre>
querydsl-sql-spring/src/main/java/com/querydsl/sql/spring/SpringConnectionProvider.java