Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HSEARCH-4708 (
https://hibernate.atlassian.net/browse/HSEARCH-4708?atlOrigin=eyJpIjoiMzZ...
)
Re: No automatic reindexing when changing a property annotated with @OneToOne(mappedBy =
...) @IndexedEmbedded (
https://hibernate.atlassian.net/browse/HSEARCH-4708?atlOrigin=eyJpIjoiMzZ...
)
You can find the whole conversation there:
https://hibernate.zulipchat.com/#narrow/stream/132094-hibernate-orm-dev/t...
(
https://hibernate.zulipchat.com/#narrow/stream/132094-hibernate-orm-dev/t...
)
The gist of it:
* Hibernate ORM used not to trigger any event for changes to a @OneToOne(mappedBy = ...)
* it started triggering events in some cases after
https://hibernate.atlassian.net/browse/HHH-14216 (
https://hibernate.atlassian.net/browse/HHH-14216 ) was fixed
* Hibernate Search has been relying on that new behavior ever since
* But
https://hibernate.atlassian.net/browse/HHH-14216 (
https://hibernate.atlassian.net/browse/HHH-14216 ) has been causing loads of issues, to
such a point that the patch was reverted in
https://hibernate.atlassian.net/browse/HHH-15045 (
https://hibernate.atlassian.net/browse/HHH-15045 )
* Moving forward, Hibernate ORM could provide additional events for @OneToOne(mappedBy =
...) , but that would probably be a new event type: JPA specifies that @PostUpdate events
are about database updates, so we probably don’t want them to be triggered for
@OneToOne(mappedBy = ...).
With that in mind, I’ll work on a limited implementation of
https://hibernate.atlassian.net/browse/HSEARCH-3567 (
https://hibernate.atlassian.net/browse/HSEARCH-3567 ) , just for non-owning ToOne
associations; that should allow us to fix this bug with limited impact on usability and
performance.
(
https://hibernate.atlassian.net/browse/HSEARCH-4708#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4708#add-comment?atlOrigin...
)
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#100207- sha1:ee9e30a )