Skip to content

#1719 strange error message for selecting collection update methods#1724

Merged
sjaakd merged 2 commits intomapstruct:masterfrom
sjaakd:1719
Feb 25, 2019
Merged

#1719 strange error message for selecting collection update methods#1724
sjaakd merged 2 commits intomapstruct:masterfrom
sjaakd:1719

Conversation

@sjaakd
Copy link
Contributor

@sjaakd sjaakd commented Feb 17, 2019

Currently there's the strange error message as described in the PR..

For adder methods MapStuct cannot generate an update method. MapStruct would cannot know how to remove objects from the child-parent relation. It cannot even assume that the the collection can be cleared at forehand. Therefore the only sensible choice is for MapStruct to create a create method for the target elements.

@sjaakd sjaakd requested a review from filiphr February 17, 2019 19:07
Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a small remark as the test isn't really testing what you want 😉

@sjaakd sjaakd requested a review from filiphr February 25, 2019 06:49
@sjaakd
Copy link
Contributor Author

sjaakd commented Feb 25, 2019

cool another GitHub feature.. Re-review..

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool feature from GitHub indeed. LGTM

@sjaakd sjaakd merged commit 51bd43f into mapstruct:master Feb 25, 2019
@sjaakd sjaakd deleted the 1719 branch February 25, 2019 18:47
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 this pull request may close these issues.

2 participants