Marco Janc (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-3007 (
https://hibernate.atlassian.net/browse/HHH-3007?atlOrigin=eyJpIjoiMzYyMTZ...
)
Re: Unchanged persistent set gets marked dirty on session.merge() (
https://hibernate.atlassian.net/browse/HHH-3007?atlOrigin=eyJpIjoiMzYyMTZ...
)
@Gail Badner
In case it is not the same reference or just not of type PersistentCollection ?
That specification seems like a lazy approach in case a collection is loaded eager. A
collection should be dirty if state of any element has changed (create, updated, deleted)
not if itself has changed.
*Use case*
This problem occured when we clean our entities from hibernate types in our application
server to send to the client by remote java beans. Before sending we replace all
PersistentCollection with their normal instances like HashSet since the client has no
hibernate at class path. We pass entities instead of DTO in many cases.
When receiving them back from the client to update the changes the collections are marked
as dirty even nothing has changed.
(
https://hibernate.atlassian.net/browse/HHH-3007#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-3007#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#100125- sha1:0a83519 )