Reference URL: http://jingyan.baidu.com/article/0320e2c1d4dd0b1b87507b38.html
Now that you're linking to the Oracle database, the first step is to open our Oracle database (log in with Scoot users after logging in to Oracle)
- 2
The second step is to open our MyEclipse development tool
- 3
Create a new Web project in MyEclipse
- 4
In the top right corner of our myeclipse, select Myeclopse Database Explorer and then right-click New in the blank space in our Database Explorer
- 5
In the popup form, follow the prompts in the diagram (note that the Add JARS must select the Ojdbc6.jar package in the Oracle Data Environment)
- 6
Click Next to select from the options in the diagram
- 7
Select Scoot User and click Next
- 8
Finally click End! Complete
- 9
Double-click on our scoot to see our table space
Return to our MyEclipse interface, right-click on the Web project →myeclipse→add hibernate annotations Pop-up the following box, followed by the options in the diagram
Select our src folder
Data connection Select Scoot User (e.g.)
To create a new package
Complete our configuration file
Select a table in our Myeclopse Database explore Scoot table space and then right click to select Hibernate Reverse Engineering
Create a new package for Bboy2
Select our Id Generator as increment
Pop-up Prompt box select No
This allows our myeclipse to deploy the Hibernate configuration file and the linked database to complete
Javaweb Project connection to Oracle database