Jones (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15977 (
https://hibernate.atlassian.net/browse/HHH-15977?atlOrigin=eyJpIjoiZjczZT...
)
Re: Deprecate @Persister (
https://hibernate.atlassian.net/browse/HHH-15977?atlOrigin=eyJpIjoiZjczZT...
)
About EntityPersister
We use a custom entity persister for entities that we annotated with @DynamicUpdate
The reason is as follow:
* DynamicUpdate will only generate sql statement with the properties that were changed
* Our entities have important properties: updateUser, updateDateTime which need to be
updated as well
We tried to add a hibernate listener to update these 2 properties on every flush, but the
update sql was only being generated for the properties that were changed… not the
properties changed by the hibernate listener.
So, we decided to create a customer persister and override the findDirty method in order
to also return the indexes for udpateUser and updateDateTime
In summary, with the deprecation of @Persister , we’ll need a way to customize findDirty
or that hibernate computes the dirty properties after custom flush listeners.
I’m happy to provide more info or discuss this further.
(
https://hibernate.atlassian.net/browse/HHH-15977#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15977#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#100217- sha1:45db922 )