-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration Mybatis with spring-data-jdbc,make mybatis can mixed with spring-data-jdbc in ONE repository [DATAJDBC-373] #598
Comments
José Miguel Sanz García commented Agree with neil4dong. Once you have MyBatis integrated to do simple statements, why not use it to it's full potential? Anyone would argue: ok but you can use MyBatis in parallel with Spring Data JDBC to retrieve entities using complex queries. Against that I would say that it would be a lot cleaner to access MyBatis queries through DataJDBC repositories having all the code well organized instead of having both DataJDBC and MyBatis mapper classes |
Jens Schauder commented If I understand this comment on the PR correct, there is a nice way to integrate MyBatis with Spring Data JDBC just through custom method implementations. This sounds preferable to me than having an extra feature, that needs maintaining |
This is nice idea.... is this in the plan? |
The PR involved in this issue makes me confused. Is it trying to introduce the concept of |
maybe like this #1312 |
I implemented such functionality by custom NamedParameterTemplate
then you can use like this
For more details, spring-data-jdbc-demo |
This issue started as a post hoc issue for a PR I just closed and didn't really develop in a clear direction. Therefore closing it. |
neil4dong opened DATAJDBC-373 and commented
Integration Mybatis with spring-data-jdbc,make mybatis can mixed with spring-data-jdbc in ONE repository by annotation with
@MybatisQuery
Please check out if this way is feasible ?
In my case we currently use mybatis for data access, and we are considering to migrate to spring-data-jdbc, but we have a lot of complex SQL which organized by Mybatis.
Considering the migration cost, how about use mybaitis and spring-data-jdbc together, so we can benefit form
Referenced from: pull request #152
The text was updated successfully, but these errors were encountered: