In this chapter, we learned how to write SQL mapped statements using annotations. We discussed how to configure simple statements, statements with one-to-one and one-to-many relationships. We also looked into building dynamic queries using
SqlProvider annotations. In the next chapter, we will discuss how to integrate MyBatis with the Spring framework.