Merge detach entity with null values #39653
Unanswered
antoinechamot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a detached entity with a String value. If the value in my database is currently filled with for example "test" and my detached entity is set to "updated_test" when I call a merge() it behaves as I expect and updates the value in the database to updated_test.
However, if the value in the detached entity is set to null and the database is currently "test" the value in the database is not updated on merge() call
Why this behavior in Quarkus ?
NB: The entity i merge extends another entity with the strategy @Inheritance(strategy = InheritanceType.JOINED)
Beta Was this translation helpful? Give feedback.
All reactions