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
在 EntityColumn 中
EntityColumn
/** * 当前字段是否设置了主键策略 */ public boolean hasPrimaryKeyStrategy() { return id && (useGeneratedKeys || (afterSql != null && !afterSql.isEmpty()) || genId != GenId.NULL.class); }
使用JPA解析的时候 genId 没进行赋值就是 null ,这个地方校检的时候 返回当前有 主键策略 导致插入数据时在 KeySqlMsCustomize 不停地输出警告
genId
null
KeySqlMsCustomize
方法 insertSelective 使用了 @Options(useGeneratedKeys = true),忽略实体上的主键策略
The text was updated successfully, but these errors were encountered:
来个PR?
Sorry, something went wrong.
fixed #mybatis-mapper/mapper/issues/97
9dff28c
No branches or pull requests
在
EntityColumn
中使用JPA解析的时候
genId
没进行赋值就是null
,这个地方校检的时候 返回当前有 主键策略导致插入数据时在
KeySqlMsCustomize
不停地输出警告The text was updated successfully, but these errors were encountered: