关联映射
如果有存在多表关联result
中出现名字一致,会出现争议问题argument type mismatch
如果关联property
不在外表,会出现getter
不到
Could not set property 'xx' of 'class com.xx.xxxxx.listC' with value 'com.xx.xxxxx.listResult@202e130a'
<association property="listResult" javaType="com.listResult">
<result column="warename" jdbcType="VARCHAR" property="warename" />
<result column="history" jdbcType="VARCHAR" property="history" />
<result column="address" jdbcType="VARCHAR" property="address" />
</association>
测试失败
<collection property="dictFixtureType" ofType="dictFixtureType">
<result column="warename" jdbcType="VARCHAR" property="warename" />
<collection property="warehouse" ofType="warehouse">
<result column="history" jdbcType="VARCHAR" property="history" />
<collection property="tiaoma" ofType="tiaoma">
<result column="address" jdbcType="VARCHAR" property="address" />
</collection>
</collection>
</collection>
测试失败
<collection property="listResult" ofType="listResult">
<result column="warename" jdbcType="VARCHAR" property="warename" />
<result column="history" jdbcType="VARCHAR" property="history" />
<result column="address" jdbcType="VARCHAR" property="address" />
</collection>