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 <[EMAIL PROTECTED]> 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. > > >
