Hibernate Create Hibernate Configuration File with the Help of Plugin (original) (raw)

Last Updated : 24 Mar, 2026

Hibernate configuration file can be easily created using IDE plugins, which simplify setup by generating the required XML structure automatically. This file (hibernate.cfg.xml) contains database connection details and Hibernate properties needed to run the application.

Steps to Create Hibernate Configuration File Using Plugin

The following steps will guide you in creating and configuring a Hibernate XML configuration file in STS(Spring Tool Suite) using the Hibernate Tools plugin.

Step 1: Open Eclipse/STS IDE

Step 2: Install JBoss Tools

Step 3: Select Hibernate Tools Only

There is no need to install everything. Just deselect all and choose only the **Hibernate Tools option. And click on **Confirm button.

Step 4: Review the Terms and install

After that choose the accept terms button and click on the **Finish button.

Now the plugin has been installed successfully. with the help of this plugin, we are going to create Hibernate Configuration File.

Step 5: Create a Maven Project

Step 6: Generate Hibernate Configuration File

Step 7: Open New File Wizard

Step 8: Configure File Location and Name

Step 9: Provide Database Details

Step 10: Verify the Configuration

You can see the configuration file has been generated and the corresponding property values have been set.