Editing the Hibernate Configuration File

See Also

The hibernate.cfg.xml editor enables you edit the configuration properties for an application that uses the Hibernate framework. You can edit the hibernate.cfg.xml file in a visual editor or edit the XML directly. In the visual editor you can use the Add, Edit and Remove buttons to open dialog boxes to modify the properties. In the XML editor you can use the IDE's code completion to assist you.

You open the editor by expanding the project's Source Packages node in the Projects window and double-clicking the hibernate.cfg.xml file located under the <default package> node.

Many of the properties in the configuration file are supplied and modified by other wizards in the IDE. For example, if you create Hibernate mapping files using the Hibernate Mapping File wizard, hibernate.cfg.xml is automatically updated with information about the mapping files.

The hibernate.cfg.xml visual editor contains the following sections for editing the configuration settings:

You can also edit any of the properties in the XML editor and use code completion to set the properties and values.

See Also
Creating the Hibernate Configuration File
Adding Hibernate Support to a Project
About Hibernate Support

Legal Notices