inheritance « ibatis « Java Database Q&A

1. How do I implement inheritance using iBatis for Java?

Please point me to an example! iBatis documentation doesn't cover this. I have been struggling all morning getting my discriminator and subMap to work!

2. Ibatis inheritance and one to many

Good day I have a complex model (ddd) which i want to map using ibatis. My model is as follows:

class A {
 int id;
 String title;
 List <B> b;

abstract class B {
 int ...

3. Collections of different types inherited from a single object vs a single collection of super object

Imagine the following scenario.

class Shape
    // methods of Class Shape

class Circle extends Shape
   // methods of Class Shape
   // methods of Class Circle 

class ...