A CRUD application that is written using the JPA framework
This project was a group assignment while studying at IT-Högskolan. The goal was to learn how JPA and ORMs work.
- Java - Core programming language used.
- JPA - ORM used to talk to the database.
- MySQL - Database used.
This project allowed us to dive deep into:
- JPA - A deeper understanding of ORMs and their function.
- Entity & Repository layout - Learned how to structure a JPA application
-
Clone the repository:
git clone https://github.com/voffie/db-hr-proj.git cd db-hr-proj
-
Ensure you have Java & Docker installed (this project is developed with JDK 23)
-
Open the project in IntelliJ IDEA:
- Go to File > Open and select the project folder
- Intellij should detect the project structure and automatically set up the necessary configurations.
-
Create & run the database:
- Make sure Docker is running
- Open
docker-compose.yml
, and run the file. Alternatively, rundocker-compose up
.
-
Run the application:
- Open
main.java
, and run the main function to start the application.
- Open