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
升级spring版本后,使用mysql自动生成主键策略时,dbm使用GeneratedKeyHolder把生成的id设置回实体时,会抛错。 提示不能设置id为null。
原因:实际上是实用GeneratedKeyHolder获取到的值类型为biginteger,而实体类型为Long,导致设置失败。
The text was updated successfully, but these errors were encountered:
fix: 使用mysql自动生成主键策略时,dbm使用GeneratedKeyHolder把生成的id设置回实体时,会抛错
47ec138
使用mysql自动生成主键策略时,dbm使用GeneratedKeyHolder把生成的id设置回实体时,会抛错 fix #41
wayshall
No branches or pull requests
升级spring版本后,使用mysql自动生成主键策略时,dbm使用GeneratedKeyHolder把生成的id设置回实体时,会抛错。
提示不能设置id为null。
原因:实际上是实用GeneratedKeyHolder获取到的值类型为biginteger,而实体类型为Long,导致设置失败。
The text was updated successfully, but these errors were encountered: