MyBatisGen code refactor