Chapter 6. Using advanced query techniques

This chapter covers

  • Using XML
  • Declaring relationships
  • N+1 solutions

Beyond the simple database operations we have looked at in the last two chapters, iBATIS can be used to perform much more advanced tasks. In this chapter, we will examine techniques that you can use to reduce the amount of code you need to write, and you will learn ways to improve performance and minimize the footprint of your application.

6.1. Using XML with iBATIS

Sometimes, you may need to work with XML-based data. The iBATIS framework will allow you to use XML when passing parameters into a query, and also for returning results from them. In both cases, it probably does not add much value to use XML where you do not need to—using ...

Get iBatis in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.