-
-
Notifications
You must be signed in to change notification settings - Fork 968
7.0.0-RC2 BUG FIX - for properties during PreUpdateEvents not being marked dirty when using mongodb #15136
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
7.0.0-RC2 BUG FIX - for properties during PreUpdateEvents not being marked dirty when using mongodb #15136
Conversation
|
I think this is a possible candidate for 7.0.1. |
|
@matrei but that is the reason behind this PR. Mongo is broken. This PR only affects mongo. Should 7.0.0 really go out broken? |
Yes, I'm afraid that would be my suggestion. I don't think we can let any more time go by. I think we need to ship 7 now. |
2d40bc0 to
e718216
Compare
|
Since this is affecting mongo only now, I do not have a concern with making this change if the tests pass. I'm ok with it also going in 7.0.1 since it's limited in scope / wont' affect hibernate. |
@jdaugherty This will not fix |
@matrei what does your previous comment have to do with mongo being broken? There is no issue with the This PR has nothing to do with |
Sorry, my mistake. I may have misunderstood or mixed up your PRs. |
|
@codeconsole I believe this can be closed now that the other PR was merged? |
|
no longer needed due to #15143 |
With mongodb, anything done during a PreUpdateEvent is lost due to not being marked dirty.
This fix wraps FieldEntityAccess with ModificationTrackingEntityAccess then marks the modified properties as dirty.
Hibernate does the same thing, but it is still not necessary for hibernate to do so in order for properties to be marked dirty.
Verify fix:
http://localhost:8081/user/create
http://localhost:8082/user/create