- This a sample project for Spring + Hibernate/JPA + MySQL
- Installed Java JDK 1.8.x
- Installed MySQL 8.x.x and create a local database connection.
- Installed Apache Maven 3.6.x
- (Optional) Installed any preferred IDE. Recommended to use Eclipse 2019-03.
- Installed Apache Lombok 1.x.x in IDE.
Setup DB data
- Execute
sample-data.sql
in your local db. - Modify
persistence-mysql.properties
and point to your local db.
Execute application
- Run
MainApplication.java
- Make sure MySQL Connector version match your local MySQL DB version. Let say your DB is 5.x.x, then change then pom.xml to 5.x.x.