How to complete persistent class and database mapping files in hibernate

Source: Internet
Author: User

because recently wrote the project needs to arrive, is here the code word, facilitates later makes a reference, here, I through is the MyEclipse reverse engineering to configure the persistence class and the data mapping file.

1. Open MyEclipse, open the database view, corresponding to Windows->open Perspective->myeclipse DB explore.

2. In the view that appears, we select the corresponding database, right-click to connect, and then to the corresponding database we connect to get the corresponding table, on the selected table right-click, will appear as shown in the sample

Select the above hibernate reverse engineering, go to the specific page to generate the corresponding persistent class and mapping files, the specific configuration I do not say.

This method can quickly generate corresponding persistent classes and database mapping files, which greatly improves the efficiency of development.

How to complete persistent class and database mapping files in hibernate

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.