Generating entity classes in eclipse

Source: Internet
Author: User

1. In eclipse Windows, select Preferences Enter driver definition in the query box

2. Click Add to select MySQL JDBC driver 5.1 in Name/type and click on the JAR list

3, download a mysql-connector-java-5.1.35.jar after putting it in the project's working directory after the 2 steps in the MySQL remove and then add the working directory under the jar package.

4. Then create a new MySQL connection in the data source Explorer

5. Enter the appropriate URL and account password in the connected MySQL and click Save Password and then click Test Connection to verify that the connection was successful.

6, select the item right-click to select Preferences in the Query box to enter project Facets Select the JPA selected below

7, set as follows

8. The right-click Project will have one more JPA tool option The second is to generate the database from the project, and the third option is to generate the entity class from the database

Generating entity classes in eclipse

Related Article

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.