Skip to content
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

Fix version update on dirty collection with another property having optimistic-lock false #3632

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

wvopt
Copy link
Contributor

@wvopt wvopt commented Dec 10, 2024

Incrementing Version on parent entity for a collection change works correctly even with optimistic-lock="false" on another property of the same entity. Call to HasDirtyCollections has a side effect thus must be called independently from the existence of other dirty properties.

Fixes #3631

csharper2010 and others added 2 commits December 10, 2024 15:17
Incrementing Version on parent entity for a collection change works correctly
even with optimistic-lock="false" on another property of the same entity.
Call to HasDirtyCollections has a side effect thus must be called independently
from the existence of other dirty properties.
@fredericDelaporte fredericDelaporte added this to the 5.6 milestone Jan 12, 2025
@fredericDelaporte fredericDelaporte changed the title Fixes #3631 Fix version update on dirty collection with another property having optimistic-lock false Jan 12, 2025
@fredericDelaporte
Copy link
Member

Sorry for the long delay,,

LGTM, but why is it another account opening the pull request than the fix author?

@csharper2010
Copy link
Contributor

Thanks for your time!

Sorry for the long delay,,

No problem, We are working with a patched version until the fix is officially available.

LGTM, but why is it another account opening the pull request than the fix author?

I mixed up two accounts I need for different purposes.

@fredericDelaporte
Copy link
Member

As a result, the merged commit will have the other account as an author. It seems you need to open a new PR if you want to avoid that. Let us know.

@csharper2010
Copy link
Contributor

As a result, the merged commit will have the other account as an author. It seems you need to open a new PR if you want to avoid that. Let us know.

No need to change that... go ahead.

@fredericDelaporte fredericDelaporte merged commit f5a7a1f into nhibernate:master Jan 14, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing version update on dirty collection with another property having optimistic-lock false
3 participants