I created factory class that provides SearchMapping instance and registered it via 'hibernate.search.model_mapping' property. In the @Factory Method implementation for some reason I need to know, which entities are present in the current Persistence Unit. I could obtain such list from the instance of org.hibernate.cfg.Configuration available in HibernateSearchIntegrator or from configured EntityManagerFactory or from FullTextEntityManager. But I have no idea, how to access it in SearchMapping @Factory method.
Is there any way to get the list of all entities avalilable in the current persistent unit in custom SearchMapping @Factory method?
_________________ М.стер Ха..ерн..т
|