ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenny Pearce <kenny.pea...@hxti.com>
Subject Re: abstract property
Date Thu, 13 Sep 2007 16:29:09 GMT
Excellent. It works fine with iBATIS 2.3. Thanks!

Jeff Butler wrote:
> Are you using iBATIS 2.2 or 2.3?  Before 2.2, iBATIS only supported 
> collection properties for nested maps.
>  
> Jeff Butler
> 
>  
> On 9/13/07, *Kenny Pearce* <kenny.pearce@hxti.com 
> <mailto:kenny.pearce@hxti.com>> wrote:
> 
>     Also, it shouldn't be forced to be a collection property. The iBatis
>     documentation pp. 32-33 says:
> 
>     "The resultMap attribute is used to describe a nested resultMap that can
>     be reused in the result mapping. This can be used in 1:1 relationships
>     or 1:N relationships. If you expect a 1:N relationship, then the
>     related
>     property should be a Collection (List, Set, Collection, etc.), and you
>     should also specify the groupBy attribute on the resultMap element to
>     denote how iBATIS will group the rows. In 1:1 relationships, the
>     related
>     property can be of any type and the groupBy attribute may, or may not,
>     be specified. It is also possible to use the groupBy attribute when some
>     joins are 1:N and some are 1:1."
> 
>     This is a 1:1 join, so I don't know why it's trying to make it a
>     collection property.
> 
> 

-- 
Kenny Pearce
Hx Technologies

Mime
View raw message