Using JPA tools to generate DB Entity under Eclipse

Source: Internet
Author: User

The DE environment is configured with the plug-in, right-clicking on the project to find "JPA Tools", and also in the project folder under the/.settings/ Org.eclipse.wst.common.project.facet.core.xml file to find out if there is a configuration item <installed facet= "JPT.JPA" version= "1.0"/>.

Refer to: http://developer.51cto.com/art/200906/126352.htm



Based on the prompt page, link to the db where you want to generate the entity class, and select the specific data table in the tables.



This setting is used to handle multi-table associations, which is used if you want to generate data tables and other data tables that have foreign key associations.



Almost successful, now is the package path that sets the primary key generation-side policy and the entity class to be generated.




The following is the database entity class generated by the Jpatools tool. Mark, it's easy to forget how to use the plugin next time.






Using JPA tools to generate DB Entity under 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.