This is a small Java project I created to demonstrate how to import data from an excel file, map it to dto's, convert it into entities, and save it to a SQL database.
I used JavaSE, java 8, using MySQL. I used workbench as the gui to create the table.
- read data from excel (.xlsx)
- Map rows to dto's
- Transform dto's into JPA entities
- Persist entities into a SQL database.
- Java 8
- Apache POI
- JavaSE
- JDBC
- SQL Database (MySQL)
- Junit
- Place your excel file in the projects src/ folder(Or wherever your code expects it).
- Open project in eclipse
- Run the main method (Main.java)
- Check the database for the imported data
Created by myself, Peter Ruggles.