C H A P T E R 11
Using MyBatis in Spring
In the previous three chapters, you saw how Spring supports seamless integration with different libraries and techniques for implementing data access logic, from the traditional JDBC approach to ORM solutions including Hibernate and the JEE standard JPA. In this chapter, we will discuss another popular data access library: MyBatis (www.mybatis.org
).
Formerly known as iBATIS (which was hosted on the Apache Software Foundation and was retired), MyBatis is a Java library (a .NET version is also available) that provides a data mapper framework for mapping the database relational structure into Java’s OO model. However, instead of focusing on programming to the OO model like ORM does, MyBatis is more focused ...
Get Pro Spring 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.