The Hibernate Reverse Engineering wizard enables you to generate a reverse engineering file from tables in a database.
The reverse engineering file is an XML file that can be used to modify the default settings used when generating Hibernate files from the metadata of the database specified in hibernate.cfg.xml. The file can be used to explicitly specify the database schema that is used, to filter out tables that should not be used and how JDBC types are mapped to Hibernate types.
The Database Tables page of the wizard enables you to specify the tables that are added to the hibernate.reveng.xml file. A <table-filter> element is added to the file for each selected table.
In this page you select tables from the database schema that is specified in hibernate.cfg.xml. Select one or more tables from the list of Available Tables and click Add.
When you click Finish, the IDE generates the hibernate.reveng reverse engineering file in the location that you specified in the first page of the wizard. If you do not select any tables in this page of the wizard the IDE will generate the hibernate.reveng.xml file without any references to tables. You can edit the hibernate.reveng.xml in the XML editor. The hibernate.reveng is not necessary for compiling your project and can be deleted if desired.