This class bridge is needed to overcome limitations in hibernate search with polymorphism on associations. See:
- "Support runtime polymorphism on associations (instead of defining the indexed properties based on the returned type"
(https://hibernate.onjira.com/browse/HSEARCH-438)
- https://forum.hibernate.org/search.php?keywords=indexembedded+subclass&terms=all
&author=&sc=1&sf=all&sk=t&sd=d&sr=posts&st=0&ch=300&t=0&submit=Search
DEVELOPER NOTE: the problem is in
org.hibernate.search.engine.DocumentBuilderContainedEntity#initializeClass()
which
is not taking subclasses into account, so the
taxon
field defined in
TaxonDescription
is not
registered in the
propertiesMetdata