ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guy Rouillier <guyr-...@burntmail.com>
Subject Re: Strange problem with resultMaps
Date Sat, 08 May 2010 03:56:28 GMT
On 5/6/2010 6:27 AM, Metsovuori Juho wrote:
>          private List<User>  friends = new ArrayList<User>();
>
>      <resultMap id="friendByUsernameMap" type="User">
>              <association property="friends"
>                      column="username"
>                      javaType="java.util.ArrayList"
>                       select="eventstream.model.mapper.UserMapper.getFriendsByUsername"
/>
>      </resultMap>

You should be using a Collection for friends, not an association.

--
Guy Rouillier

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message