I'm working on a legacy project that uses Hibernate's SessionFactory directly instead of EntityManager. I currently need to register a certain third-party class as mapped superclass so Hibernate will know how to persist entities that are subclasses of that class. But, as I can't modify the source, I cannot place necessary annotations on it. Is there some other way to register it as mapped superclass?
I know I can define such mapping in orm.xml file but since my project does not depend on Hibernate's JPA implementation, it won't be parsed by Hibernate.