Creation ReverseEngineering File through Hibernate with NetBeans by R4R Team

When we have make the connection with the database then we can easily create hibernate.reveng.xml fileNew Page 1

For the creating the hibernate.reveng.xml we need to follow some basic step those are below:

Step 1. Go in File Menu Wizard -> New File -> Find the Hibernate and then click on hibernate.reveng.xml ->  Next

In the hibernate.reveng.xml file default name shown in below image and press Next. Here we can put the hibernate.reveng.xml file where we want to put. But path will be shown (as in figure ) by default. So No need to change.

 In Below image if our database connection was correct then we can find that table which we have created in the database. In image which is highlighted table name is person. Select it.

 Click on add as in below image and click on finish.

As in below image when we click on the finish at that time hibernate.reveng.xml will be created in the default package.

 <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "">


  <schema-selection match-catalog="hibernate_pro"/>

  <table-filter match-name="person"/>


Highlighted code line of hibernate.reverse.xml is that database name and table name.

Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!