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