Settings

Hibernate Configuration

Hibero Settings

Current Profile

Lists available Hibernate Configuration Profiles and allows selection of the current profile to be used to create the Hibernate runtime environment.

Auto reset configuration

Check this option if you want that the Hibernate Configuration (i.e., the Hibernate runtime environment) is reset every time that any of the following events happen:

  • A new Hibernate Configuration Profile is selected.
  • A Hibernate Configuration Profile property is modified (e.g., version, descriptor, etc.).
  • The project classpath is changed (e.g., a new library is added or removed).
  • The project is compiled (e.g., POJO classes are modified).
  • The configuration descriptor is modified (e.g., XML configuration file changes).

Hibernate Configuration Profiles

Hibero Settings Configuration Profiles

Hibernate Configuration Profiles contain the specific information required to create a Hibernate runtime environment.

At least one profile must be created for HQL related features to work and be selected at the Hibernate Configuration section. Alternatively, you may switch between profiles at the Hibero tool window.

HQL Editor

Hibero Settings HQL Editor

Translate HQL query:

  • on editor opened: Check this option to translate an HQL query to SQL when the HQL Editor is opened.
  • on editor changed: Check this option to translate an HQL query to SQL dynamically as the HQL Editor text changes.

Discover parameters:

  • on editor opened: Check this option to discover an HQL query parameters when the HQL Editor is opened.
  • on editor changed: Check this option to discover an HQL query parameters dynamically as the HQL Editor text changes.

Auto resize columns to fit

Check this option to have the query results table columns automatically resized by one of the following policies:

  • Column header: Resize columns to fit their header.
  • Column content: Resize columns to fit their content.
  • Table: Resize columns to fit the whole table width.

Display properties of returned entites

By default the entities returned by an HQL query are displayed at the results table using their toString() method. Check this option if you want that the properties of those entities are displayed instead.

Use scrollable results whenever possible

Check this option to use an scrollable result set when executing queries. An scrollable result set is used typically to efficiently fetch the query results as needed instead of up-front, however not all queries are supported, and it also requires that is supported by the JDBC driver.

Max results

In case that an scrollable result set cannot be used then specifiy the maximum number of rows to be returned by the query.

HQL Style Schemes

Hibero Settings HQL Style Schemes

HQL Code Style Schemes contain user defined customizations about how to format HQL queries.

Current Scheme

Lists available HQL Style Schemes and allows selection of the current style to be used when reformatting HQL queries.

Log Console

Hibero Settings Log Console

Specify the categories and level to be logged in the Log Console. Uncheck a category to disable it completely, or choose the desired log level: debug, info, warn or error.

Select Print stack trace if you want to see printed the full stack trace at the Log Console when exceptions are thrown from inside the Hibernate runtime environment.