Marco Belladelli (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=637b480...
) *commented* on HHH-16343 (
https://hibernate.atlassian.net/browse/HHH-16343?atlOrigin=eyJpIjoiMTExMW...
)
Re: Batch Fetch Size + PreLoadEventListener + Polymorphic Entity with cache enabled could
lead to IllegalStateException: Illegal pop() with non-matching
JdbcValuesSourceProcessingState (
https://hibernate.atlassian.net/browse/HHH-16343?atlOrigin=eyJpIjoiMTExMW...
)
No, the pre-load would not be called again when initializing a proxy. In fact, using *pre*
-load to capture the loaded state is not correct, the entity will never be “loaded” at
this point since this event is called before (pre) loading.
For that purpose I’d suggest using Hibernate’s PostLoadEvent or even the @PostLoad JPA
lifecycle callback (
https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spe...
) method annotation on the entity class itself.
(
https://hibernate.atlassian.net/browse/HHH-16343#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16343#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:ac3e918 )