Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16350 (
https://hibernate.atlassian.net/browse/HHH-16350?atlOrigin=eyJpIjoiZjNhY2...
)
Re: PreLoadEvent listeners always receive PreLoadEvent with null state (
https://hibernate.atlassian.net/browse/HHH-16350?atlOrigin=eyJpIjoiZjNhY2...
)
Jones (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) , after my change you should be able to access the state object in the pre-load event
with no performance impact.
Adding something like state in the PostLoadEvent interface is not that useful IMO, since
the getEntity() method will return an initialized entity instance which already contains
all its property values. I don’t know why you need the state as an object array, but I
would suggest accessing the data directly from the entity instance (i.e. using getters),
rather than calling persister.getValues() which is expensive. I'd suggest also taking
a look at JPA lifecycle callback (
https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spe...
) methods once again.
(
https://hibernate.atlassian.net/browse/HHH-16350#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16350#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#100219- sha1:6a6077b )