No automatic reindexing when setting a property annotated with @OneToOne(mappedBy = ...) @IndexedEmbedded to null
Description
caused by
Activity
Show:
![](https://secure.gravatar.com/avatar/2a8bdd4ffd282b7185c74b52ab452617?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYR-6.png)
Yoann Rodière September 6, 2021 at 12:18 PM
It’s caused by .
Note: I added tests while working on , annotated them with @TestForIssue(jiraKey = { …, “HSEARCH-4305“ })
, and disabled them because they failed. When we upgrade to a version of ORM that fixed , we should re-enable these tests.
![](https://secure.gravatar.com/avatar/2a8bdd4ffd282b7185c74b52ab452617?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYR-6.png)
Yoann Rodière September 3, 2021 at 8:53 AM
I just confirmed this also affects Hibernate Search 6.0 (Hibernate ORM 5.4.32.Final)
Fixed
Assignee
![](https://secure.gravatar.com/avatar/2a8bdd4ffd282b7185c74b52ab452617?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYR-6.png)
Reporter
![](https://secure.gravatar.com/avatar/2a8bdd4ffd282b7185c74b52ab452617?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYR-6.png)
Components
Sprint
None
Fix versions
Priority
Created September 3, 2021 at 8:43 AM
Updated February 2, 2023 at 9:10 AM
Resolved October 19, 2022 at 4:04 PM
From what I can see, we're not getting any ORM "post-update" event in this case. It's weird, because we do get an event when setting the property to a non-null value. I suspect it's a bug in Hibernate ORM.