Use eclipse table automatically generated by the database entity classes.
Step one: Right project --project facets-- check JPA
Step 2: Using eclipse link database, mysql driver installed. (Oracle sql server and method of operation is substantially the same).
Step Three: Right-table project --jpa tools--
Step Four: to select the table to be generated. Meanwhile on the table to make changes to either generate their own use, eliminating the need to create their own list of troubles.
Self loading: https://blog.csdn.net/qq_36411874/article/details/78990440