Previous Next vertical dots separating previous/next from contents/index/pdf

Configuring Hibernate Properties

Workshop Studio includes form editors to manage the Hibernate configuration file and includes wizards to add new content. In addition, AppXRay provides validation, navigation, and code completion for all Hibernate properties and their dependencies.

Viewing the Hibernate Configuration File

  1. From within the AppXplorer, right-click the Hibernate Configuration branch and click Open.
  2. Click Open to view the Hibernate configuration file

  3. The Hibernate Configuration Editor organizes the Hibernate properties into three main categories; Connection, Mappings and Properties (you can also view the source using the Source tab). The Connection tab displays the current connection properties and the ability to modify the existing connection. To update the Hibernate connection information, click the Edit Connection Properties link.
  4. Click Edit Connection Properties to upgrade connection information

  5. Choose the Connection Type used by Hibernate and click Next.
  6. Select a connection type

  7. Specify the Connection Properties and click Next. You can use the Populate from existing connection link to populate the database connection properties from a connection defined through the DbXplorer.
  8. Specify connection propertiesx

  9. In the Connection Pooling dialog, specify the C3P0 pool properties and click Finish. Workshop will update the Hibernate configuration file source code.
  10. Specify C3P0 pool properties

  11. The Mappings tab displays the current Hibernate mappings. Selecting a mapping will display the Mapping Properties allowing a new mapping file to be specified and also easy navigation to the specific resource. To add a new mapping entry to the Hibernate configuration file, click the New Mapping button and browse to the Mapping File.
  12. Click New Mapping to add a new mapping entry

  13. The Properties tab displays the current Hibernate properties and their values through the form editor. To add properties, click the New Property button and specify the Name and Value. Notice the the Browse button displays all possible Hibernate properties with descriptions.
  14. Click New Property to add a property to the configuration

Related concepts

Generating Object Relational Mappings

Managing Entity Relationships

 

Skip navigation bar   Back to Top