Is it possible to combine MyBatis and QueryDSL/jOOQ?

前端 未结 2 1333
臣服心动
臣服心动 2020-12-30 13:48

MyBatis provides the mapping, local cache, and logging out of the box.
QueryDSL / jOOQ provide compile-time check of SQL statements and IDE auto-completion as a result

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 14:19

    Just like to add a point to Lukas very complete answer.

    From my benchmark MyBatis has some serious perfomance issue on the mapping, Jooq as a much nicer performance curve. That's with Jooq on mapper.

    https://github.com/arnaudroger/SimpleFlatMapper#local-mysql

    enter image description here

    Also SimpleFlatMapper as an integration point with querydsl and spring data. I did not know you could integrate your own mapping with Jooq and will add that to the backlog.

提交回复
热议问题