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

Using records as @Unwrapped auditing objects fails with Cannot set property #4732

Closed
mp911de opened this issue Jun 27, 2024 · 0 comments
Closed
Assignees
Labels
type: bug A general bug

Comments

@mp911de
Copy link
Member

mp911de commented Jun 27, 2024

See also spring-projects/spring-data-relational#1694

@mp911de mp911de added the type: bug A general bug label Jun 27, 2024
@mp911de mp911de self-assigned this Jun 27, 2024
mp911de added a commit that referenced this issue Jun 27, 2024
We now compare the other object whether it equals the delegate in case UnwrappedMongoPersistentProperty.equals is being called with the MongoPersistentProperty retrieved from a MappingContext.

This ensures that unwrapped properties can be compared to vanilla MongoPersistentProperty instances when checking constructor/creator method correlation of parameters.

Closes #4732
mp911de added a commit that referenced this issue Jun 27, 2024
We now compare the other object whether it equals the delegate in case UnwrappedMongoPersistentProperty.equals is being called with the MongoPersistentProperty retrieved from a MappingContext.

This ensures that unwrapped properties can be compared to vanilla MongoPersistentProperty instances when checking constructor/creator method correlation of parameters.

Closes #4732
@mp911de mp911de added this to the 4.2.8 (2023.1.8) milestone Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant