Javaweb Project connection to Oracle database

Source: Internet
Author: User

Reference URL: http://jingyan.baidu.com/article/0320e2c1d4dd0b1b87507b38.html

  1. 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. 2

    The second step is to open our MyEclipse development tool

  3. 3

    Create a new Web project in MyEclipse

  4. 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. 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. 6

    Click Next to select from the options in the diagram

  7. 7

    Select Scoot User and click Next

  8. 8

    Finally click End! Complete

  9. 9

    Double-click on our scoot to see our table space

  10. 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

  11. Select our src folder

  12. Data connection Select Scoot User (e.g.)

  13. To create a new package

  14. Complete our configuration file

  15. Select a table in our Myeclopse Database explore Scoot table space and then right click to select Hibernate Reverse Engineering

  16. Create a new package for Bboy2

  17. Select our Id Generator as increment

  18. Pop-up Prompt box select No

  19. This allows our myeclipse to deploy the Hibernate configuration file and the linked database to complete

Javaweb Project connection to Oracle database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.