-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
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
使用JPA注解时批量插入数据空指针异常 #92
Labels
bug
Something isn't working
Comments
看代码这俩默认值都不是空: /**
* 主键策略2,优先级2:取主键的 SQL,当前SQL只能在 INSERT 语句执行后执行,如果想要在 INSERT 语句执行前执行,可以使用 {@link #genId()}
*/
String afterSql() default "";
/**
* 主键策略3,优先级3:Java 方式生成主键,可以和发号器一类的服务配合使用
*/
Class<? extends GenId> genId() default GenId.NULL.class; 使用的最新版本吗? |
|
这儿是bug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
批量插入数据使用调用了
但是JPA解析主键
EntityColumn
未设置afterSql
和genId
默认值都为null
The text was updated successfully, but these errors were encountered: