I am trying to make a connection with Hibernate and JPA, but when trying to create the connection or persist some data it executes the following error:
Dec 04, 2018 2:02:45 PM org.hibernate.ejb.HibernatePersistence WARN: logDeprecation HHH015016: Encountered to deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018 2:02:45 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: HHH015016: Encountered to deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018 2:02:45 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: HHH015016: Encountered to deprecated javax.persistence.spi.PersistenceProvider [org.hibernate.ejb.HibernatePersistence]; use [org.hibernate.jpa.HibernatePersistenceProvider] instead. Dec 04, 2018 2:02:45 PM org.hibernate.jpa.internal.util.LogHelper INFO: HHH000204: LogPersistenceUnitInformation PersistenceUnitInfo [name: context ...] Dec 04, 2018 2:02:45 PM INFO: HHH000412: hibernate Core {4.3.0.Final} Dec 04, 2018 2:02:45 PM org.hibernate.cfg.Environment INFO: HHH000206: hibernate.properties not found Dec 04, 2018 INFO: 2:02:45 PM org.hibernate.cfg.Environment buildBytecodeProvider HHH000021: Bytecode provider name: javassist Dec 04, 2018 2:02:45 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager INFO: HCANN000001: Hibernate Commons Annotations {4.0.4.Final} Dec 04, 2018 2:02:45 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!) Unable to build entity manager factory
My pom.xml
%pre%My persistence.xml
%pre%My Main class
%pre%