故障
MyBatis Generator版本:1.3.5MyBatis Generator在Mapper接口中(由javaClientGenerator生成),只生成了:
deleteByPrimaryKey()
insert()
insertSelective()
未能生成以下方法:
selectByPrimaryKey()
updateByPrimaryKey()
updateByPrimaryKeySelective()
原因
目前測試:當MySQL的表中只有一列(該列爲主鍵)時,會出現這種情況。可能是MyBatis Generator的BUG。