Hibernate automatic Table-building Technology _ Using Database reverse generation technology

Source: Internet
Author: User
Tags java web

1. First create a user with Oracle:

Log in to Sqlplus and log in to the database with SYSDBA:

2. Create a user and grant this user permission to connect,resource two roles:

3. Connect to hibernate_001 This user and create a table and serial number under this user

Create a sequence sequence

Create a table:

To this, the work of the database has been completed;

2. Open MyEclipse, create a hibernate_test Java Web project

3. Join Hibernate support

Right-click the project----myeclipse---project facets--instal Hibernate Facet

Select Version 3.3 (depending on your choice)

If you have already created a package, you can choose directly, if not, then click New to create a new package:

Click Next:

Hibernate automatic Table-building Technology _ Using Database reverse generation technology

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.