ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Pitts" <Daniel.Pi...@cnet.com>
Subject M:N question
Date Wed, 23 Aug 2006 20:57:22 GMT
I have something like the following:

class Foo {
      Integer fooId;
      String name;
	Map<Integer, List<Integer>> bar = new HashMap<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#

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

View raw message