故障
MyBatis Generator版本:1.3.5MyBatis Generator在Mapper接口中(由javaClientGenerator生成),只生成了:
deleteByPrimaryKey()
insert()
insertSelective()
未能生成以下方法:
selectByPrimaryKey()
updateByPrimaryKey()
updateByPrimaryKeySelective()
原因
目前测试:当MySQL的表中只有一列(该列为主键)时,会出现这种情况。可能是MyBatis Generator的BUG。