Setup JPA with Spring - how to set up the EntityManager factory and use the raw JPA APIs.

This tutorial shows how to set up Spring with JPA, using Hibernate as a persistence provider.

For a step by step introduction about setting up the Spring context using Java-based configuration and the basic Maven pom for the project, see this article.

We’ll start by setting up JPA in a Spring Boot project, then we’ll look into the full configuration we need if we have a standard Spring project.

Here is a video on setting up Hibernate 4 with Spring 4 (I recommend watching it in full 1080p):

#spring #database #java

How to Set up Spring with JPA (Java Persistence API)
2.40 GEEK