Using my eclipse to enable reverse generation of Hibernate

Source: Internet
Author: User

"134 (experimental Class) Forest Dawn"

Here is a detailed introduction to using MyEclipse to reverse-generate hibernate projects.

1. Preparatory work

First you must provide a database, and the relationship between them needs to be handled completely and correctly.

2, the first step

Window-->open perspective-->myeclipse Database Exploere Click on the left side of this view to select "New", the following figure appears:

Follow the specific database to fill in the correct. Click "NEXT". The following interface appears:

The final "Finish" is complete. Of course there is no need for this step.

3, the second step

Create a new Web project. Select the item and then: Myeclipse-->project--->add Hibernate capabilities. The following interface will appear after the operation:

Next

Next

Next

For this step, I checked out the auto-generated Hibernatesessionfactory tool class, which is a singleton that goes back to the session. When you're done, open the project to see:

3, the third step:

Back to MyEclipse Database Exploere interface. Select the sqlserverdriver you just configured, right-click to select Open Connection, and the following interface will appear when you are finished:

Select the appropriate table in dbo-->table, and right-click to select Hibernate Reverse Engineering. Above Then appears:

Next

Next

This completes the reverse engineering of hibernate .......

Search

Copy

Using my eclipse to enable reverse generation of 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.