public final class Hibernate4Setup extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(org.hibernate.SessionFactory sf,
org.hibernate.Session s)
Closing the Hibernate resources -
SessionFactory
and the Session. |
static org.hibernate.service.ServiceRegistry |
getStandardRegistry(Properties setupProperties)
Generate hibernate registry while filling it with properties.
|
static String |
getTableName(Properties setupProperties)
Returning current table name being used in the app for saving the recovery markers.
|
public static org.hibernate.service.ServiceRegistry getStandardRegistry(Properties setupProperties)
setupProperties - properties for connectionpublic static String getTableName(Properties setupProperties)
setupProperties - properties to search for the db table namepublic static void close(org.hibernate.SessionFactory sf,
org.hibernate.Session s)
SessionFactory
and the Session.sf - session factory to be closeds - session to be closedCopyright © 2018. All rights reserved.