SQL Server database Anti-compilation generates hibernate entity classes and mapping files

Source: Internet
Author: User

I. Building the project and SQL Server database

Eclipse, the version I'm using is Neon3

Ii. Data Source Explorer

Select OK

In the database Connections of the data source Explorer, select New

Fill in the general's connection information.

Create new New Driver Definition

Fill out the selection ok

Choose just the drivers

Test Connetion Testing

Next, then Finsh.

So, successfully connected to the database of the hibernatedb just now.

Third, configure Hibernate configurations

On the Show view add, select OK

Select Add Configuration

Select project name, and database connection Select the database connection you just configured

Direct OK

View

Then select Customize Perspective

Select the hibernate code generation in the picture, then OK

Choose the color.

Select the Out path and package packages

Reveng.xml option to setup, then create New ...

Save path settings, then next

Refresh

Include 3 tables, then Finsh

Select Apply, then run

SQL Server database Anti-compilation generates hibernate entity classes and mapping files

Related Article

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.