See here: https://discourse.hibernate.org/t/tried-to-implement-associationinverseside-but-no-success/7434
This will lead to problems since, depending on how ORM sends us change events, reindexing may only happen when name changes, not when name.english changes for example. We should:
- Warn about such misuses on startup.
- Try to fix such misuses by automatically registering dependencies to name.english, etc. if the content of the composite object doesn’t include any entity (i.e. it encompasses a tree, not a graph). Maybe in that casse we shouldn’t produce a warning an just consider it fair use?
|