Closed daviyang35 closed 5 years ago
<groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.7.1</version>
CRUD扩展从Service/ServiceImpl改为Repository/RepositoryImpl。
目前在一些架构设计与实践中,将领域内的具体业务服务称为Service,数据持久化层称为Repository。
例如:org.springframework.data.repository.CrudRepository
是否有可能,在未来的版本中将IService/ServiceImpl 更改为类似于 CrudRepository 这样的以 Repository作为标记的名称。
目前即使不修改MyBatisPlus的命名,个人可以对自己的代码生成器或者类对象做重命名处理。 这虽然可以解决问题,但对使用者容易造成误解和歧义。因为Service在同一个工程中有不用的用意。
不会
命名意义不大,修改过影响面太大,如果你真实觉得有必要修改,你可以建立自己的基类继承 mp 的基类
为了提供向后兼容性,官方新增一个以Repository命名的类也是一个可行方案。
这不是一个bug反馈
当前使用版本(必须填写清楚,否则不予处理)
希望达到的效果
CRUD扩展从Service/ServiceImpl改为Repository/RepositoryImpl。
目前在一些架构设计与实践中,将领域内的具体业务服务称为Service,数据持久化层称为Repository。
例如:org.springframework.data.repository.CrudRepository
是否有可能,在未来的版本中将IService/ServiceImpl 更改为类似于 CrudRepository 这样的以 Repository作为标记的名称。
为什么要更改
目前即使不修改MyBatisPlus的命名,个人可以对自己的代码生成器或者类对象做重命名处理。 这虽然可以解决问题,但对使用者容易造成误解和歧义。因为Service在同一个工程中有不用的用意。