Skip navigation

Integrations - Hibernate

Article Rating?

Product Type ORM Solution
Versions Supported 3.1.2, 3.2.5
Module Status - Forge download
- Included with Terracotta 2.6.0 and earlier
Module Availability - Released (latest) See Terracotta Forge Releases
Module Availability - SNAPSHOT (latest) See Terracotta Forge Snapshots
Download with Kit Not Available
Additional Documentation

Hibernate Getting Started Guide

Introduction

Hibernate is a powerful, high performance object/relational persistence and query service.

Hibernate allows lazy loading. When enabled, a pojo object returned from a Hibernate query will contain a proxy object to the referenced object. For instance, a Customer object returned from a query to the Customer table will have a proxy object in its reference to the Account object. Hibernate will de-reference the proxy object when the Account object is queried at a later point in time.

With the Terracotta integration module (TIM) for Hibernate, one node can query a Customer table lazily and share the returned Customer object, while a second node can de-reference the Account object reference and obtain the referenced Account object.

Dependencies

None.

Implementation

To enable clustering with Hibernate, add the Hibernate TIM to tc-config.xml:

<modules>
    <module name="tim-hibernate-<hibernate_version>" version="<module_version>"/>
</modules>

For example, if you download the module tim-hibernate-3.2.5-1.1.1-SNAPSHOT, add the following snippet to tc-config.xml:

<modules>
    <module name="tim-hibernate-3.2.5" version="1.1.1-SNAPSHOT"/>
</modules>

The name of the older modules included with Terracotta kits followed the format clustered-hibernate-<hibernate_version>-<module_version>.

Known Issues

None.

Adaptavist Theme Builder Powered by Atlassian Confluence