ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DavidZaz <dzaze...@cait.org>
Subject Nested POJO and resultMap tag
Date Wed, 09 Dec 2009 21:22:12 GMT

I have a POJO where one of its properties refers to a nested object. For

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" />
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: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message