I have a POJO where one of its properties refers to a nested object. For
example,
class car {
Tire wheels;
}
class Tire {
int size;
String brandName;
}
How can I make a resultMap in my ibatis sql file to populate both the car
and the wheels at the same time?
I already tried the following (but the wheel object was not populated):
<resultMap id="myResult" class="car">
<result property="wheels.size" column="WHEEL_SIZE" />
<result property="wheels.brandName" column="BRAND_NAME" />
</resultMap>
--
View this message in context:
http://old.nabble.com/Nested-POJO-and-resultMap-tag-tp26717930p26717930.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]