Open in new window

back

Adding Hibernate Capabilities to a Project

Making a project Hibernate-enabled is very straight-forward in Exadel Studio. Adding Hibernate capability to a project will add all the required libraries to the project.

  1. If you want to add a new Hibernate nature to a project, right-click the project and select Exadel Studio/Add Hibernate Capabilities... from the context menu.

    createHibernateWizard

  2. On the next screen, you can select a name for the appropriate Hibernate dialect.

    add Hibernate Capabilities

  3. Next, you can select a connection type.

    add Hibernate Capabilities

    • If you select the "Configure Hibernate to run in non-managed environments" option, you will need to fill in connection URL details and user information.

      add Hibernate Capabilities

      Then, you will need to select the properties for JDBC connection pooling.

      add Hibernate Capabilities

    • If you select the "Configure Hibernate to run in managed environments" option, you can then select properties.

      add Hibernate Capabilities

    • If you select the "Specify a custom connection provider" option, you can then specify a custom connection provider class.

      add Hibernate Capabilities

  4. After clicking the Finish button, you can select a mapping approach (Schema To Object or Object To Schema) that you want to use.

    add Hibernate Capabilities

After that, you can should see the ORM Explorer view. The ORM Explorer view lists all Hibernate-enabled projects. Most Hibernate features are available by right-clicking various nodes in the project tree in this view.

add Hibernate Capabilities

back