I have a two ibatis sql maps that are linked together via a sub select like the simplified example below:
<resultMap id="order" class="Order">
<collection property="orderLines" ofType="OrderLine" resultMap=”orderLine”/>
</resultMap>
I have an order object that contains a collection of line objects that are returned by a join and an association. I wish to perform some row handler functionality on every line that is returned by the nested association that returns the order lines.
I know that this can be achieved by passing in a IListRowHandler to the queryWithRowHandler call when calling the spring sqlmapclienttemplate for a query for just a list of OrderLine objects, but this does not allow me to use a rowhandler on the subselect collection when making a call only on the parent sql map, order in this example.
Is there any way to declaritively assign a rowhandler class to a specific resultmap or select statement within an ibatis sql map? As this is the kind of functionality i feel should be there. Or alternatively i am open to suggestions on modifying each instance of the row objects returned by the sub select as they are returned rather than interrogating the fully built order object and manipulating them after the fact.