Comments (4)
先在service层封装吧
from mapper.
同求tk.mybatis 中的 @keysql 使用 @keysql(genId = SnowflakeGenId.class) 就可以不配置配置 sharding 的 key-generator 属性了 还有一个需求公司表有业务主键和逻辑主键 之前在使用通用mapper的时候只需要在业务主键上添加 @keysql(genId = UUIDGenId.class) 很方便
from mapper.
后续看看能不能给mybatis提交个可以自定义主键生成器的方案。
from mapper.
provider中已经实现,将会发布新版本
from mapper.
Related Issues (20)
- 有适配 spring boot3 的计划了吗? HOT 2
- Example `andIn` 比较集合为空集合时的情况 HOT 2
- 怎么使用这个版本调用存储过程啊? HOT 3
- 空指针问题(非必现) HOT 3
- mapper 不应该依赖 common
- provider版本升级说明和mapper的介绍冲突了 HOT 1
- 还没有在新的release版本中添加逻辑删除功能吗 HOT 1
- 从1.2.2升级到2.X,有报错 HOT 4
- 达梦:No setter found for the keyProperty 'id' in '实体类' HOT 3
- 能否提供更加明细的版本说明 HOT 3
- rui代码生成器的函数有哪些? HOT 2
- 动态表名实现覆盖不全 HOT 2
- 关于wrapper()能否加上以下扩展
- LogicalMapper 如何查出被删除的数据 HOT 1
- 自定义主键 HOT 1
- 实体类中某个字段不加注解新增修改时依然会报该字段不存在 HOT 2
- 使用JPA注解时批量插入数据空指针异常 HOT 4
- 关于 this.baseMapper.deleteByPrimaryKey(dto.getResId())的疑问咨询 HOT 2
- 自定义策略自动生成主键能否支持insertList HOT 2
- 是否有方法可以用代码对查询语句加锁 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapper.