ISL@b IDBS2 libraries 1.2

Package it.unimi.dico.islab.idbs2.cloud.session

Contains all necessary classes to manage the Hibernate Session connected to a cloud database.

See: Description

Package it.unimi.dico.islab.idbs2.cloud.session Description

Contains all necessary classes to manage the Hibernate Session connected to a cloud database.

Usage

To use this Hibernate Wrapper it is sufficient to access static methods of CloudSessionManager class. Through this class is possible to access static fields representing entity managers or to retrieve an Hibernate Session built on the Cloud database definition.

Contained helpers

Each one of the following fields is a reference to a singleton instance of class containing all available functions for a structure management.

N.B.: Calling the save method on the CloudManager object will produce a sequence of cascade events in order to save all the connected objects (in fact the full cloud) [TESTED]. Calling the save method on another object of this package will produce the saving of the object and all his direct linked properties [NOT TESTED].

From CloudSessionManager class of this package it is also possible to access a static function getSessionFactory that will return an Hibernate session factory in order to grant the direct access to the Hibernate system.

ISL@b IDBS2 libraries 1.2