Matthieu Rickly (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWE5MTkzNDAx...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16586?atlOrigin=eyJpIjoiNWE5MT...
) HHH-16586 (
https://hibernate.atlassian.net/browse/HHH-16586?atlOrigin=eyJpIjoiNWE5MT...
) Entity PUT via REST with all null payload fields is not updated in DB (
https://hibernate.atlassian.net/browse/HHH-16586?atlOrigin=eyJpIjoiNWE5MT...
)
Change By: Matthieu Rickly (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
When an Entity is passed with all null payload fields in a PUT REST resource, the entity
is not marked as dirty, because the fields of the passed entity are compared with the
(null) fields of a new entity. When the entity is merged into the context, I would expect
the dirty marking to be performed between the passed entity and the entity from the
persistence context (stored in the database), but no such thing occurs. Hence no update is
scheduled for the entity and the database entity is unchanged.
(
https://hibernate.atlassian.net/browse/HHH-16586#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16586#add-comment?atlOrigin=ey...
)
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#100225- sha1:84d3b45 )