"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