Don't require bi-directional associations for @IndexedEmbedded/bridges that extract the ID from the target of an association on the owning side

Description

E.g. with something like this:

Or like this:

We know the entity ID is immutable, so there is no reason to have a reindexing resolver that reindexes MyEntity when MyOtherEntity changes, so there is no need for an inverse side for the targets association.

And yet, at the moment Hibernate Search will reject this mapping and complain the inverse side of the targets association is missing.

This would be a special case of , probably simpler to handle, but eventually we’ll want to use similar metadata for both issues.

Activity

Details

Assignee

Reporter

Components

Priority

Created March 8, 2023 at 6:58 AM
Updated September 25, 2023 at 2:48 PM