Create a connection template in MyEclipse
First, select this item
Second, right-click to create a new connection template
Third, enter this page to select the database, Driver name for this connection template name, click Add Jars Select the driver Class (under the installation directory under Oracle Ojdbc6.jar), in the Save password optional (whether to save the password) and then click Next
Four, select the database mode, click Add, select the Scott mode, Finsh.
To create a hibernate configuration file
First, select the project
Second, if there is no corresponding version, remove all the √, click Next
Third, if there is an XML file selection existing, there is no choice new,next
Iv. DB Driver Select the connection template that you just created, and generate it automatically.
V, √ remove, Finish.
Persisting classes and mapping files
First, switch to this interface
Second, select the tool table to export
Third, the first √ is to create the mapping file, below the update Hibernate .... This √ can be automatically generated in the Hibernate configuration file mapping, the second √ create a persistent class
Iv. Choosing a primary key generation method
V. Select Table PRIMARY key generation mode
End
Quickly create persistence classes, mapping files, and Hibernate components using MyEclipse reverse engineering