Ok you got me confused on this post.

In your class Foo you have a Map with keys that point to a list. Does
this mean that your key would be the "a" from the marMap table and the
List<Integer> is the "b"


How about a real world example..... What does this Map represent?

How about an Invoice with multiple line items or something we can talk
about besides foobars

Nathan


On 8/23/06, Daniel Pitts <[EMAIL PROTECTED]> wrote:
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