I have something like the following:

class Foo {
      Integer fooId;
      String name;
        Map<Integer, List<Integer>> bar = new HashMap<Integer,
List<Integer>>();
      // getters/setters bellow.
}

Table foo has (fooId, name) and table barMap has (fooId, a, b)

<select id="getFoo" resultMap="fullFoo">
   SELECT * from foo join barMap using (fooId) WHERE fooId = #fooId#
</select

My question is... What would the resultMap have to look like to handle
"bar"
Or can it handle it directly?

Reply via email to