MyBatis accessing method parameter in subquery

290 views Asked by At

I currently have this result map:

 <resultMap id="one" type="FirstType" autoMapping="true">
        <collection property="listProp" column="example_id" 
           ofType="SecondType" select="subQuery">
        </collection>
    </resultMap>

Dao:

    List<FirstType> one(@Param("params") ParamObject obj);

I can access the param object in my parent query and it's all good but I can't access it in my sub query. Is it possible to pass the obj param to subquery?

0

There are 0 answers