Multiple return types in MyBatis?
<p>I have two classes A and B with many fields each, and one table with values for all those fields.  I have tried unsuccessfully to craft <code>&lt;select&gt;</code> and <code>&lt;resultMap&gt;</code> elements that would return a list of pairs of objects of types A and B.</p>

<p>The only (not so clean) solution I have found so far is to just implement a <code>typeHandler</code> associated to one column (say, the first of the table) and in that code create the two objects I need by reading all columns from the <code>ResultSet</code> passed to the type handler rather than just the column name passed as a <code>String</code> to the type handler.</p>

<p>Is there a cleaner solution using result maps?  (Note: I don't want to partition my table to match the two object types).</p>