Dear Community,
We are pleased to announce the release of mybatis-spring-boot version 1.0.0.
Now, you can include mybatis in your spring-boot projects and everything will be auto-configured.
Project is available on GitHub.
Enjoy!
Thursday, November 26, 2015
Sunday, November 8, 2015
Spring 4 got you down with no ibatis support - no worries Mybatis has your back
Spring is well on it's way to leaving 3 behind. For ibatis users that for one reason or another are stuck to ibatis, but want to just make the jump to spring 4, there is a dilemma. This dilemma roots in the fact that spring team dropped ibatis in spring 4. Until now this meant that upgrading to spring 4 required upgrading ibatis to mybatis and mybatis-spring. Well in order to mitigate risk to those that need it, mybatis team has decided to extract the spring 3 ibatis support into a new mybatis project called 'mybatis-2-spring'. Better still, we go one step further and have released a fresh copy of 'mybatis-2'. So there you have it, all of the users out there dealing with legacy code, mybatis is no longer directly tied into the mix resulting in higher risk in upgrading. With that said, enjoy what's left in the ibatis land as we resurrect the past.
Cheers!
Jeremy Landis and MyBatis Team
Cheers!
Jeremy Landis and MyBatis Team
Tuesday, July 28, 2015
MyBatis-Guice 3.7 Released!
Dear Community,
We are proud to announce the release of MyBatis-Guice 3.7.
Provides some new features:
It is available in Github and Maven Central.
Big thanks for your support and enjoy!
We are proud to announce the release of MyBatis-Guice 3.7.
Provides some new features:
- @Transactional annotation support JTA transactions through MyBatisJtaModule
- Some other minor improvements
It is available in Github and Maven Central.
Big thanks for your support and enjoy!
Friday, June 19, 2015
Mybatis-spring 1.2.3 Released!
Mybatis team is pleased to announce the release of mybatis-spring 1.2.3. This is generally a micro release with bug fixes over prior release.
Changes
----------
If anything you wanted to see was missed, please file a PR or comment on outstanding PR to see in a future release.
Enjoy!
Jeremy Landis
Changes
----------
- Custom FactoryBean on MapperScan annotation added, see https://github.com/mybatis/spring/pull/70
- SqlSessionFactoryBean falls in circular dependencies by Spring Boot's DataSourceInitializer, see http://github.com/mybatis/spring/issues/58
- And far too many maven build updates to count including spring 3.2.13 and mybatis 3.2.8 base support.
If anything you wanted to see was missed, please file a PR or comment on outstanding PR to see in a future release.
Enjoy!
Jeremy Landis
Sunday, May 24, 2015
MyBatis 3.3.0 released!
Dear Community,
We have just released MyBatis 3.3.0.
Includes two main changes:
There are some other minor changes and bug fixes. See the details at https://github.com/mybatis/mybatis-3/issues?q=milestone%3A3.3.0
Note that you can still use CGLIB as the proxy factory tool by adding CGLIB to your classpath and setting the MyBatis global parameter as follows:
It is available as usual in Github and Maven Central.
Sincerely,
The MyBatis Team.
We have just released MyBatis 3.3.0.
Includes two main changes:
- Ognl has been upgraded to 3.0.11 that is the latest version
- The default proxy tool is now Javassist and is included inside the mybatis jar
There are some other minor changes and bug fixes. See the details at https://github.com/mybatis/mybatis-3/issues?q=milestone%3A3.3.0
Note that you can still use CGLIB as the proxy factory tool by adding CGLIB to your classpath and setting the MyBatis global parameter as follows:
<settings> <setting name="proxyFactory" value="CGLIB"/> </settings>
It is available as usual in Github and Maven Central.
Sincerely,
The MyBatis Team.
Sunday, March 8, 2015
FreeMarker plugin for MyBatis
Kostromin Igor has created a project to provide a FreeMarker plugin for MyBatis.
This is how a mapper looks like with FreeMarker:
Where findName.ft1 is:
Enjoy!
This is how a mapper looks like with FreeMarker:
@Lang(FreeMarkerLanguageDriver.class) @Select("select * from names where id in (${ids?join(',')})") List<Name> findNamesByIds(@Param("ids") List<Integer> ids);
You can also use FreeMarker templates this way:
@Lang(FreeMarkerLanguageDriver.class) @Select("findName.ftl") Name findName(@Param("n") String name);
Where findName.ft1 is:
SELECT *
FROM names
where firstName = <@p name="n"/>
See more and contribute at the project's page at GithubEnjoy!
Subscribe to:
Posts (Atom)