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 https://hibernate.atlassian.net/browse/HSEARCH-4796, probably simpler to handle, but eventually we’ll want to use similar metadata for both issues. |