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 (
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 ...