1. Create two new Web project projects in MyEclipse2014 named: Hibernate_manual and Hibernate_auto.
2. Click to select the new Web Project Hibernate_auto, right--->myeclipse-->project facets[capabilities]-->install Hibernate Facets,
The following window appears, choose Hibernate specification version for 3.3,target runtime for their usual server, my is Apache Tomcat v8.0.
3. In the Java package, click New, enter Com.pb.util (the bundle name customization, because this step automatically generated the Hibernatesessionfactory class, it is Util package), and then Finish-->next.
4. This is the configuration interface of DB browser, the picture style is later in this article, you can continue next.
5. Return to see this item Hibernate_auto, the project icon has hibernate logo. Note that the logo is the circle on the left side of the project name, next to the Earth.
This icon indicates that the browser can be identified by the Hibernate Reverse Engineering (reverse engineering) of the DB and import the table from the database into the entity class to the target project.
6. Create a new table Boy,sql statement in the table of the Scott account in DB Browser.
7. Point to the new table boy, right--->hibernate Reverse engineering-->, and then click on the Java SRC folder to the right of the browser--> in the new window can see Hibernate_auto project ,
But note: Another hibernate_manual project is not identified because I did not have a right-click on the Hibernate_manual project similar to the Hibernate_auto project-->myeclipse--> Project facets[capabilities]-->install Hibernate Facets operation. My goal is not to do so, manually let the Hibernate_manual project appear hibernate identity and be recognized by DB browser. Please keep looking.
8. See here Hibernate_auto Project has Hibernate logo, hibernate_manual project not.
9. Enter the MyEclipse2014 workspace and find the source code for the Hibernate_auto project and the Hibernate_manual project. Go to the. Settings folder and open the Org.eclipse.wst.common.project.facet.core.xml separately, do you find it?
Hibernate_auto more than hibernate_manual a line of code: <installed facet= "Me.hibernate" version= "3.3"/>.
10. <installed facet= "me.hibernate" version= "3.3"/> This line of code from Hibernate_auto to Hibernate_manual, save, close. Note here that the comments are for the sake of understanding and do not save these annotations here.
The result diagram of the Org.eclipse.wst.common.project.facet.core.xml file for the 11.hibernate_manual project is the addition of a line <installed facet= " Me.hibernate "version=" 3.3 "/>.
12. Go back to MyEclipse2014, click the hibernate_manual item, refresh refreshes, the Hibernate logo will appear.
13. Back to DB browser to perform reverse engineering, Hibernate_manual appeared!
---restore content ends---
Original MYECLIPSE2014 Full Manual Reverse engineering