1. Create a new Web project
2. Right click on the created project and find MyEclipse in Add Hibernate c ..... and click,:
3. Tick, click Next, and then in next
4. Modify according to your needs, detailed
5. Click on the Java package's new, create an Add name, this package is used to store and so on automatically generated Java files, click Finish.
6. After completion, find DB Browse, new 1 links, such as: LJH;
7. After the success, you can see the database in SQL Server, click on your database to find the DBO, click on the dbo to find the table, click on tables to find it (note: A few tables of the primary key foreign key must set the relationship, in order to correctly generate the corresponding things),
8.java src folder must select your project's SRC folders, note is your current project. The Java package selects the packages that were created at that time to hold the automatically generated data, tick, click Next.
9. Tick, Next.
10. Tick the first or second table that has a relationship to the selection table, click Finish, and the build is complete.
Hibernate is automatically generated from the database