ISL@b IDBS2 libraries 1.1 Beta 3

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

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

See: Description

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

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

Usage

To use this Hibernate Wrapper it is sufficient to access static methods of MapSessionManager class. Through this class is possible to access static fields representing entity managers or to retrieve an Hibernate Session built on the map 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 MappingSetManager object will produce a sequence of cascade events in order to save all the connected objects (in fact the full MappingSet context) [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 MapSessionManager 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.1 Beta 3