<resultMap type="tk.mybatis.springboot.model.SuperCar" id="superCarResult">
<id column="carid" property="id"/>
<result column="cartype" property="type"/>
<association property="brakes" resultMap="brakesResult"/>
<collection property="engines" javaType="ArrayList" ofType="tk.mybatis.springboot.model.Engine">
<result column="enginetype" property="type"/>
<result column="enginecylinders" property="cylinders"/>
</collection>
</resultMap>