ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingmar Lötzsch <iloetz...@asci-systemhaus.de>
Subject Re: [resultMap] related objects
Date Thu, 02 Apr 2009 11:12:03 GMT
> ...and there is a problem with resultMap:

You should explane the problem. What exceptions? What table structures?

> something like that doesn't work:
> 
> <resultMap id="addr-result" class="Address">
> <result property="addressId" column=".." />
> <result property="street" column=".." />
> </resultMap>
> 
> <resultMap id="comp-result" class="Company">
> <result property="id" column=".." />
> <result property="name" column=".." />
> <result property="address" resultMap="address-result" />
> </resultMap>

This example can't work, because

resultMap="address-result"

does not match

<resultMap id="addr-result"

Ingmar

Mime
View raw message