public class HibernateUnitils extends Object
| Constructor and Description |
|---|
HibernateUnitils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertMappingWithDatabaseConsistent()
Checks if the mapping of the Hibernate managed objects with the database is still correct for the configurations
that are loaded for the current test.
|
static void |
flushDatabaseUpdates()
Flushes all pending Hibernate updates to the database.
|
static org.hibernate.Session |
getSession() |
static org.hibernate.SessionFactory |
getSessionFactory() |
public static void assertMappingWithDatabaseConsistent()
public static void flushDatabaseUpdates()
public static org.hibernate.SessionFactory getSessionFactory()
SessionFactory configured for the current test object (spring or using
the HibernateSessionFactory annotation.public static org.hibernate.Session getSession()
Session associated with the current transaction. This method returns the
same Session during the course of a transaction.Copyright © 2016. All Rights Reserved.