The Hibernate Configuration wizard enables you to create a Hibernate configuration file based on a data source that is registered with the IDE. The Hibernate configuration file contains the database connection details enabling the application to connect to a database and information about the location of Hibernate mapping files.
In this panel of the wizard you specify the following item.
Click Finish after you specify the database connection. The IDE generates the hibernate.cfg.xml configuration file in the location that you specified in the Name and Location pane of the wizard.
After you create the configuration file you can edit the file in the XML editor if you need to change the database connection details. You can have multiple Hibernate configuration files, but the default name for the configuration file used by Hibernate is hibernate.cfg.xml.