Closed lburgazzoli closed 11 years ago
This example was changed yesterday for Hibernate 4.2.1-SNAPSHOT:
https://github.com/brmeyer/HibernateOSGi/commit/c2140ba9cd11aa33521b3a22f673c6313e1b34e8
The snapshot contains big fixes for Hibernate classloaders, etc. See discussions on https://github.com/hibernate/hibernate-orm/pull/486 and https://github.com/hibernate/hibernate-orm/pull/491
org.hibernate.jpa.HibernatePersistenceProvider does not exist in 4.2 -- that's available only in 4.3 (alpha coming next week) and later. org.hibernate.ejb.HibernatePersistence is the only option in 4.2.
Thanks for continuing to work on this. Please give it a try with 4.2.1-SNAPSHOT
I've tried to set-up again this example with Hibernate OSGi 4.2.0.Final and I found the following issues:
The persistence provider exported is org.hibernate.ejb.HibernatePersistence whereas it should be org.hibernate.jpa.HibernatePersistenceProvider (IMHO).
Then I've got the following exception when the JPA Container tries to instantiate my JPA bundle: