Follow these steps to create database tables from entities and relationships that we have modeled:
- Right-click on the project and select JPA Tool | Generate Tables from Entities:
Figure 4.31: JPA Details for the courses field in Student entity
- Because we haven't configured any schema for our JPA project, the Schema drop-down will be empty. Click the Add a connection to JPA project link:
Figure 4.32: JPA project properties
- Click the Add connection link and create a connection to the course_management_jpa ...