STS generates entity classes in reverse from MySQL database

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.