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