Hi
In my application I´m calling a query that includes a join and return
a result to a resultMap wich has a field that holds a List with other
resultMap, like this:
---------------
<resultMap id="notificationListResult" class="notification">
<result property="id" column="id" />
<result property="topicId" column="topic_id" />
<result property="sourceTypeId" column="source_type_id" />
<result property="notificationTypeId"
column="notification_type_id" />
<result property="category" column="category" />
<result property="priority" column="priority" />
<result property="source" column="source" />
<result property="expiration" column="expiration"
javaType="java.util.Date" />
<result property="notificationDescription"
resultMap="Notification.notificationDescriptionListResult"
/>
</resultMap>
<resultMap id="notificationDescriptionListResult"
class="notificationDescription">
<result property="notificationId" column="id" />
<result property="topicId" column="topic_id" />
<result property="sourceTypeId"
column="source_type_id" />
<result property="notificationTypeId"
column="notification_type_id" />
<result property="locale" column="description_locale" />
<result property="title" column="title" />
<result property="description" column="description" />
</resultMap>
--------------
It work well but I´m having problem with List and I wonder if could I
make a custom class or something else to transform
notificationListResult.notificationDescription from List to Map before
return the final List of objects to my app.
Also, I would like to know if there is a plan to allow iBatis to
accept Maps instead of List.
Thanks in advance
J