Using the Generated Objects

MyBatis Generator (MBG) generates these types of objects (unless you use the MyBatis3DynamicSql runtime):

  1. Java Model Objects (always)
  2. SQL Map Files (always for iBATIS, usually for MyBatis)
  3. Java Client Objects (optional)
  4. A class for use in the xxxByExample methods. See the following pages for information about that class:

The MyBatis3DynamicSql runtime generates objects that are dependent on the MyBatis Dynamic SQL library. These objects are far more capable than the objects generated by the other runtimes, but they are dependent on the MyBatis Dynamic SQL library.

  1. Java Model Objects
  2. A mapper interface and "support" class that are dependent on the MyBatis Dynamic SQL library. See the MyBatis Dynamic SQL Usage Notes page for more information.

The individual pages describe these objects, and their usage.