Re: Nested POJO and resultMap tag

2009-12-09 Thread DavidZaz
Sorry to bother everyone, but I figured it out. There is nothing wrong with my ibatis resultMap. My issue was caused by a problem with the join in my SQL statement (which I used to load the properties belonging to the sub-class - in this example it was the tire class). DavidZaz wrote: >

Nested POJO and resultMap tag

2009-12-09 Thread DavidZaz
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 (