> I suppose it will be more more convenient to use thread safe factory in
> a singleton-scope service (and inject factory as a dependency).
> Let's look to the similar solutions:
> - org.springframework.data.jdbc.query.QueryDslJdbcTemplate
> (http://static.springsource.org/spring-data/data-jdbc/docs/1.0.0.RC1/reference/html/#core.querydsl
> )
> - org.mybatis.spring.SqlSessionTemplate (from mybatis-spring integration)
> The purpose of these classes are very close to JooQFactoryProxy.

I see, thanks. This makes sense to me, now. I'll also check out the
QueryDSL / Spring integration, as I'm vaguely acquainted with
QueryDSL. Many use cases are very similar between jOOQ and QueryDSL.

In general, the jOOQ Factory doesn't need to be touched, but the
wrapper may provide different behaviour according to requirements or
suggestions by Spring.

Cheers
Lukas

PS: I'm always CC'ing this to the user group as well. I think these
are very important questions to be adressed and communicated to the
community.

Reply via email to