First, we're going to build a MySQL database connection in the STS.
1.
When click OK, if there is no error, it should be established, we can click to view all the tables in this database
We can then perform the database operation of STS, as follows:
Click on the button below to open one or right click on open SQL Scrapbook
After determining the data connection, we 'll go to Hibernate's website to download the toolkit. A zip compressed file of about 14M.
Http://jaist.dl.sourceforge.net/sourceforge/jboss/HibernateTools-3.2.4.Beta1-R200810311334.zip;
Unzip the downloaded files and release the two folders and the contents of the features and plugins. When you are finished, copy the two folders to the Eclipse directory (the two folders exist by default in Eclipse, and copy directly).
Then we
2.
Click Run and we'll see the generated entity classes and configuration files we want
STS generates entity classes in reverse from MySQL database