Melissa Koppeschaar (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e8224c...
) *created* an issue
Bean Validation (
https://hibernate.atlassian.net/browse/BVAL?atlOrigin=eyJpIjoiMjk1MzMxZmF...
) / Bug (
https://hibernate.atlassian.net/browse/BVAL-753?atlOrigin=eyJpIjoiMjk1MzM...
) BVAL-753 (
https://hibernate.atlassian.net/browse/BVAL-753?atlOrigin=eyJpIjoiMjk1MzM...
) @NotEmpty not working when updating a Set using the getter (empty Set gets persisted) (
https://hibernate.atlassian.net/browse/BVAL-753?atlOrigin=eyJpIjoiMjk1MzM...
)
Issue Type: Bug Assignee: Unassigned Created: 16/Jun/2020 10:11 AM Priority: Minor
Reporter: Melissa Koppeschaar (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e8224c...
)
MapStruct updates a Set by using the getter if the Set is already containing objects. For
some reason, the @NotEmpty annotation gets bypassed in this scenario (i.e., it is possible
to persist an empty Set when using the getter even though the @NotEmpty annotation is
used). This problem does not show when using the setter.
Here is the link to a small project I created to demonstrate the bug:
https://gitlab.com/melissa.koppeschaar/hibernate-bug-report
(
https://hibernate.atlassian.net/browse/BVAL-753#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/BVAL-753#add-comment?atlOrigin=eyJ...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100128- sha1:2f2218b )