====== JPA vs. Hibernate configuration files ====== There are two configuration files: pom.xml /src /main /resources hibernate.cfg.xml /META-INF persistence.xml For pure Hibernate API, we should use **hibernate.cfg.xml**.\\ For JPA (Java Persistence API), the **persistence.xml** file should be used. === Migrating from Hibernate API to JPA === If we have a pure Hibernate API project, we can use the existing configuration file in a new JPA project.\\ Add in persistence.xml the property **hibernate.ejb.cfgfile**