Skip to content
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

Add support for MyBatis 3 [DATAJDBC-2] #259

Closed
spring-projects-issues opened this issue Sep 3, 2010 · 12 comments
Closed

Add support for MyBatis 3 [DATAJDBC-2] #259

spring-projects-issues opened this issue Sep 3, 2010 · 12 comments
Assignees
Labels
has: votes-jira status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Sep 3, 2010

Thomas Risberg opened DATAJDBC-2 and commented

Provide a new home for support for MyBatis 3 going forward.

The iBatis 3 beta 1 introduced API changes which break the existing Spring Framework support and the move to MyBatis could potentially introduce more breaking changes. See the Spring Framework JIRA issue SPR-5991 for comments and code contributions


Issue Links:

14 votes, 17 watchers

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 3, 2010

Thomas Risberg commented

The support for MyBatis 3 will be provided as part of the Spring Data project in the datastore-sql component

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 5, 2010

Simone Tripodi commented

Hi Thomas, just to let you know the MyBatis (formerly Apache iBatis) community started a 100% community driven subproject[1] to support the MyBatis 3.0.2 Spring integration, if there is a chance to collaborate we're more than happy to provide you our efforts and support.

[1] http://mybatis.googlecode.com/svn/sub-projects/mybatis-spring/trunk/

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 14, 2010

Arkadi Shishlov commented

Just to note: not only the project has been started, it is aleady in a state you can use it in your development. Works for me with MyBatis 3.0.3 snapshot and Spring 3.0.4

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 14, 2010

Jean-Marc Moras commented

Dear, I also tried mybatis-spring subproject with MyBatis 3.0.2 and Spring 3.0.4. It works, but the Transaction mechanism appears not working. Maybe I wrong.
Does somebody managed to configure transaction at spring level ? Example :
<tx:advice id="txAdvice" transaction-manager="txManager">
tx:attributes

<!-- all methods starting with 'get' are read-only -->
<tx:method name="get*" read-only="true"/>
(...)
Any feed back will be appreciated

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 15, 2010

Thomas Risberg commented

Simone,

Great to see a community driven project for this integration. It's obviously of great interest to a lot of developers. I will contact you to see how we best can collaborate. I'll also check out the current code to give it a try.

Cheers,
Thomas

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 16, 2010

Jean-Marc Moras commented

Dear,

About other try, I note that the transactional advice <tx:method name="get*" read-only="true"/> do not work, but the advice <tx:method name="up*" rollback-for="org.example.Exception" propagation="REQUIRED"/> is working well.

Have a good time working on Spring support for Mybatis3.

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Sep 16, 2010

Eduardo Macarron commented

Hi Jean.

You have a working sample. Both here in spring jira and also on mybatis-spring:
http://code.google.com/p/mybatis/source/browse/#svn/sub-projects/mybatis-spring/trunk/src/test/java/sample

That shows how to integrate with spring with transactions in some different ways. You can test it by your own. It works so I would say that there is something wrong in your setup.

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Oct 12, 2010

Karl Leidner commented

Hi Thomas, is there a date set for a GA release of this "Support for MyBatis 3"-feature in Spring?

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Oct 31, 2010

Simone Tripodi commented

Just to let users know that the MyBatis community just released the 1.0.0-RC2 Spring integration module[1].
People that need support have to post questions to the the proper ML[2] and report issues on the mybatis issues tracker[3].
I renew my invitation on providing our efforts if the Spring maintainers are interested on including our stuff in Spring Datastore.

[1] http://groups.google.com/group/mybatis-user/browse_thread/thread/80fe28ae6937842c#
[2] http://groups.google.com/group/mybatis-user/
[3] http://code.google.com/p/mybatis/issues/list

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Nov 22, 2010

Simone Tripodi commented

Just to let users know that the MyBatis community just released the 1.0.0-RC3 Spring integration module, check it out on http://code.google.com/p/mybatis/downloads/list?can=3&q=Product%3DSpring

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jan 1, 2011

Eduardo Macarron commented

Hi guys.

Happy new year!!

Yesterday MyBatis-Spring 1.0.0 final was released [1] with full documentation both in English and Chinese, code samples [3] and even a new PetStore built on it [1].

Hope you enjoy it!

[1] http://groups.google.com/group/mybatis-user/browse_thread/thread/5ec663a57beeede2
[2] http://code.google.com/p/mybatis/source/browse/#svn%2Fsub-projects%2Fjpetstore-6%2Ftrunk
[3] http://code.google.com/p/mybatis/downloads/list?can=3&q=Product%3DSpring

@spring-projects-issues
Copy link
Author

spring-projects-issues commented May 5, 2011

Thomas Risberg commented

The integration between MyBatis and Spring is available at http://code.google.com/p/mybatis/wiki/Spring (see other comments on this ticket as well) so there is no need to implement any of this support within Spring Data

@spring-projects-issues spring-projects-issues added status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement has: votes-jira labels Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: votes-jira status: declined A suggestion or change that we don't feel we should currently apply type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants