-
Notifications
You must be signed in to change notification settings - Fork 359
spring data jdbc: saveAll on null id's entities calls update statement #2064
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
Comments
Thanks for reaching out @chrshnv Please, provide minimal reproducible example. It is very hard to deduce the preconditions in your example. |
Thank you, @chrshnv. I think the issue is that you're using Please, change the callbacks, the problem should go away. |
@chrshnv I'm sorry, I have misled you, the And I think I even know where the problem is, it is right here:
We apply the change creator on the Thank you, @chrshnv |
After taking a closer look at it. Indeed, when we have the
Now, the reason why it actually happens is that when we do just In case of I think the best approach here would be to align the What are your thoughts on this, Jens @schauder, Mark @mp911de? |
…the RootAggregateChange creation Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
It seems to be the same issue that I encountered. I have created an MRE for reporting the issue. Please refer to it. |
I consider this a bug and we should align saving for both cases. |
Uh oh!
There was an error while loading. Please reload this page.
saveAll on null id's entities calls update statement.
logs with saveAll:
The text was updated successfully, but these errors were encountered: