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" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
Highlighted code line of hibernate.reverse.xml is that database name and table name.