Hibernate reverse Engineering

Source: Internet
Author: User

First step: Install Hibernate tools

Installing plug-ins in eclipse hibernate tools

Step Two: Create a new Java project, import hibernate-related jar packages and MySQL driver jar packages

Step three: Open Hibernate configuration View

  

Right-click in the open Hibernate configuration view, add configuration

Enter name, select Hibernate version, select the Imported Project project, select Database connection (DB connection), and set the configuration file.

Because there is no configuration file, create a new one;

Click Setup on the right side of the configuration file,

Click Create New, select the SRC for the newly created Java project, click Next,

Fill in the configuration file,

Click Finish, and finally configure the interface

Click OK to complete the configuration;

(After a successful configuration, you can see a table of linked databases in Hibernate configuration view)

Fourth Step: Open Hibernate view

Click the Hibernate View button

You can see a special Run button on the toolbar above

Click the triangle on the right, and select Hibernate code generation configurations ...

Double-click or right-click New in the Blank Space,

Fifth step, complete the configuration

Select the build policy and the generated file

Click Run,

Results

Hibernate reverse Engineering

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.