When I try to run the test class HibernateOGMTest I get for mongodb
javax.persistence.PersistenceException: Unable to build entity manager factory
main.HibernateOGMTest.setUp(HibernateOGMTest.java:26)
one of the warning says
WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.
error out here
entityManagerFactory = Persistence.createEntityManagerFactory("ch18.hibernate_ogm");
persistence.xml & pom.xml are exact match as the source code so no typo there.
But when I changed to using neo4j instead of mongodb there is no error anymore and the tests pass.
can anyone confirm that the issue exists for them too?
When I try to run the test class HibernateOGMTest I get for mongodb
one of the warning says
WARN: HHH015016: Encountered a deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead.error out here
entityManagerFactory = Persistence.createEntityManagerFactory("ch18.hibernate_ogm");persistence.xml & pom.xml are exact match as the source code so no typo there.
But when I changed to using neo4j instead of mongodb there is no error anymore and the tests pass.
can anyone confirm that the issue exists for them too?