|
In case the hibernate entity manager is created via the Persistence.createEntityManagerFactory(...) function in a standalone Java program a deprication warning is output: "WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead."
This is due to the reason that the implementation of getProviders in the class Persistence (package hibernate-jpa-2.1-api-1.0.0.Final.jar) still invokes the old persistence provider. Any settings (<persistence> tag) in the persistence.xml are ignored in this case.
|