Last updated: Aug 20, 2025
This repository contains a JFramework-Data example which uses JPA Object Relational Mapping (ORM) to persist and retrieve data from locally created H2 database.
- JDK 17+ Installed
- Clone the repository
- Import as Java project into your favorite IDE (we use SpringToolSuite and Eclipse-JavaEE)
- Run
Appclass.
The repository contains the following main contents:
- Maven project with pom.xml
📄Note: If you are using Eclipse, be sure to refresh your project (select your project→ right click→ Maven→ Update Project)
- Config file which contains the database config.
:page_facing: To change the database engine, enable the proper config in the config file.
- Model class which is the JPA entity that maps to a database table
- App class