那當咱們想要MyBatis不去重,怎麼操做呢? sql
解決辦法: 數據庫
一、將association的id從新寫入到ResultMap中便可,如: app
二、在POJO定義中加入一個僞id做爲一標識。如: spa
POJO: xml
mapper.xml ci