January 2019
Intermediate to advanced
392 pages
10h 11m
English
Before running the project, go to the MySQL Workbench app, the cha6_dbtest table, and cha6_dbtest_schema. There you will notice that there will be no table named user_jpa, which was mentioned in the UserModel class as a table name.
Here is the screenshot of the schema where we have no table:

Let's run the application, check the database again, and refresh the schema. Notice that now there is a table as we mentioned in the @Table annotation of the UserModel. This has all the columns of that object, including—id, name, email, and contact_number.
Here is the screenshot of the updated database:
The testing system is the same ...
Read now
Unlock full access