We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我现在用的版本是1.1.5版本,insert方法的sql会对自增主键ID进行赋值,导致在达梦数据库报错。 达梦数据库insert、update不支持对自增ID进行任何赋值操作
The text was updated successfully, but these errors were encountered:
有 sqlserver 版本的批量插入方法,这个方法不会设置id。
tk.mybatis.mapper.common.sqlserver.InsertMapper; tk.mybatis.mapper.common.sqlserver.InsertSelectiveMapper;
Mapper/base/src/main/java/tk/mybatis/mapper/common/SqlServerMapper.java
Line 38 in 737b361
Sorry, something went wrong.
有 sqlserver 版本的批量插入方法,这个方法不会设置id。 tk.mybatis.mapper.common.sqlserver.InsertMapper; tk.mybatis.mapper.common.sqlserver.InsertSelectiveMapper; Mapper/base/src/main/java/tk/mybatis/mapper/common/SqlServerMapper.java Line 38 in 737b361 public interface SqlServerMapper<T> extends
多谢大佬的建议。 我现在是在ID字段上加上如下两个注解来解决了: @GeneratedValue(generator= "JDBC") @column(insertable = false, updatable = false)
No branches or pull requests
我现在用的版本是1.1.5版本,insert方法的sql会对自增主键ID进行赋值,导致在达梦数据库报错。
达梦数据库insert、update不支持对自增ID进行任何赋值操作
The text was updated successfully, but these errors were encountered: