with SelectProvider and dynamic-sql, i can build a very complex query sql by user query,
but i can not dynamic build the ResultMap .
:
```
class EmployeeQuery {
//when this is true, i join hobby table in sql
private boolean withHobby;
//when this is true, i join skill table in sql
private boolean withSkill;
private List<HobbyVO> hobbys;
private List<SkillVO> skills;
//i have almost ten withTable flag
//every withTable flag do a join.
}
when withHobby is true and withSkill is true
the result map like this:
<resultMap id="vo_with_skill_hobby_ResultMap" type="xxx.EmployeeVO">
<id column="employee_id" jdbcType="VARCHAR" property="id" />
<result column="employee_name" jdbcType="VARCHAR" property="name" />
<result column="employee_gender" jdbcType="INTEGER" property="gender" />
<collection property="hobbys" ofType="xxx.HobbyVO">
<id column="hobby_id" property="id" />
<result column="hobby_name" jdbcType="VARCHAR" property="name" />
</collection>
<collection property="skills" ofType="xxx.SkillVO">
<id column="skill_id" property="id" />
<result column="skill_name" jdbcType="VARCHAR" property="name" />
<result column="skill_category_id" jdbcType="VARCHAR" property="categoryId" />
</collection>
</resultMap>
```
i read the source code, i found resutlmap build in init(annotation or xml).
is there anyway to build the resultmap dynamicly?