As I'm not familiar with the ORM code base, I can't really comment on the particular classes mentioned.
I'm wondering though, whether any effort related to the integration of Hibernate ORM and OSGi should be based on the JPA support defined by the Enterprise OSGi specification. This spec e.g. defines the notion of "persistence bundles", standardizes a manifest header ("Meta-Persistence") which allows to enable JPA services for given bundles, defines OSGi services for EntityManagerFactory etc.
So AFAICS, adhering to this spec would be the way nowadays to make use of JPA under OSGi.
As I'm not familiar with the ORM code base, I can't really comment on the particular classes mentioned.
I'm wondering though, whether any effort related to the integration of Hibernate ORM and OSGi should be based on the JPA support defined by the Enterprise OSGi specification. This spec e.g. defines the notion of "persistence bundles", standardizes a manifest header ("Meta-Persistence") which allows to enable JPA services for given bundles, defines OSGi services for EntityManagerFactory etc.
So AFAICS, adhering to this spec would be the way nowadays to make use of JPA under OSGi.