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

Incorrect handling of collections in EntityState #21

Open
Nawrok opened this issue Dec 13, 2022 · 0 comments · May be fixed by #22
Open

Incorrect handling of collections in EntityState #21

Nawrok opened this issue Dec 13, 2022 · 0 comments · May be fixed by #22

Comments

@Nawrok
Copy link

Nawrok commented Dec 13, 2022

The persisted values in the EntityState class for the collection are copied to the LinkedList in the savePersistedValue() method. As a result, by defining a collection of type Set in an entity tagged with the @ColumnDefinition(updateable = false) annotation, the SaveProcessor method for restoring values is executed. As this is done via the reflection mechanism, the application gives an error about not being able to assign a collection of type Set to a collection of type LinkedList.

Nawrok added a commit to Nawrok/lc-spring-data-r2dbc that referenced this issue Dec 13, 2022
@Nawrok Nawrok linked a pull request Dec 13, 2022 that will close this issue
Nawrok added a commit to Nawrok/lc-spring-data-r2dbc that referenced this issue Dec 13, 2022
Nawrok added a commit to Nawrok/lc-spring-data-r2dbc that referenced this issue Dec 13, 2022
Nawrok added a commit to Nawrok/lc-spring-data-r2dbc that referenced this issue Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant