O'Reilly logo

Java Persistence with MyBatis 3 by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, we learned how to write SQL mapped statements using the Mapper XML files. We discussed how to configure simple statements, statements with one-to-one and one-to-many relationships, and how to map the results using ResultMap. We also looked into building dynamic queries, paginated results, and custom ResultSet handling. In the next chapter, we will discuss how to write mapped statements using annotations.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required