Any non trivial application needs to talk to databases. JPA is for ORM (Object to Relational Mapping) frameworks like Hibernate as JDBC is database connectivity.
The finished project artifacts are shown below, and it consists of Java classes, properties files, and Spring “JavaConfig” files with @Configuration annotation.
Let’s start with bringing in the dependent jar files via maven pom.xml…