First step: Install Hibernate tools
Installing plug-ins in eclipse hibernate tools
Step Two: Create a new Java project, import hibernate-related jar packages and MySQL driver jar packages
Step three: Open Hibernate configuration View
Right-click in the open Hibernate configuration view, add configuration
Enter name, select Hibernate version, select the Imported Project project, select Database connection (DB connection), and set the configuration file.
Because there is no configuration file, create a new one;
Click Setup on the right side of the configuration file,
Click Create New, select the SRC for the newly created Java project, click Next,
Fill in the configuration file,
Click Finish, and finally configure the interface
Click OK to complete the configuration;
(After a successful configuration, you can see a table of linked databases in Hibernate configuration view)
Fourth Step: Open Hibernate view
Click the Hibernate View button
You can see a special Run button on the toolbar above
Click the triangle on the right, and select Hibernate code generation configurations ...
Double-click or right-click New in the Blank Space,
Fifth step, complete the configuration
Select the build policy and the generated file
Click Run,
Results
Hibernate reverse Engineering