1 of 1 people found this helpful
I'm not sure why that is logged when the org.hibernate.ejb.HibernatePersistence provider is loaded but not used. It sounds like a premature warning to me.
Resolved in the latest Hibernate snapshot
This warning still appears using Hibernate 4.3.5 Final.
Jul 06, 2014 8:22:59 PM org.hibernate.ejb.HibernatePersistence logDeprecation
WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence];
use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
Even if I use this META-INF/persistence.xml declaration:
<persistence-unit name="trading_entities" transaction-type="RESOURCE_LOCAL">
I've just found that this issue is still open, see: [HHH-9141] Wrong warning about deprecated persistence provider - Hibernate JIRA
I believe that this will change for Hibernate 5.0, you could disable logging of Hibernate warnings until then.