Total Pageviews

2020/03/06

[Java] [IntelliJ] Generate Entity Class from Database

1. Created test project using Spring Boot

2. Right clicked the project and “Add Framework Support” and select “JavaEE Persistence(2.0)” and chose some settings and clicked "OK"


3. View  => Tool Windows => Database, and connected to my local database (i.e. Oracle). 





4. View  => Tool Windows => Persistence, right clicked project and go to “Generated Persistence Mapping” and go to click the “By Database Schema”.



5. Select table and generate entity class(es).






No comments: