org.hibernate.envers.test
Class AbstractOneSessionTest
java.lang.Object
org.hibernate.envers.test.AbstractEnversTest
org.hibernate.envers.test.AbstractOneSessionTest
- Direct Known Subclasses:
- ReadEntityAssociatedAuditedTest, ReadEntityAssociatedNotAuditedTest, ReadEntityWhitEntityNameTest, ReadEntityWithAuditedCollectionTest, ReadEntityWithAuditedCollectionTest, ReadEntityWithAuditedManyToManyTest, SingleDomainObjectToMultipleTablesTest
public abstract class AbstractOneSessionTest
- extends AbstractEnversTest
Base class for testing envers with Session when the same session and
auditReader must be used for the hole test.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected Configuration config
AbstractOneSessionTest
public AbstractOneSessionTest()
init
public void init()
throws URISyntaxException
- Throws:
URISyntaxException
initMappings
protected abstract void initMappings()
throws MappingException,
URISyntaxException
- Throws:
MappingException
URISyntaxException
getHibernateConfigurationFileName
protected String getHibernateConfigurationFileName()
closeSessionFactory
public void closeSessionFactory()
initializeSession
public void initializeSession()
- Creates a new session and auditReader only if there is nothing created
before
forceNewSession
public void forceNewSession()
- Creates a new session and auditReader.
getSession
protected Session getSession()
getAuditReader
protected AuditReader getAuditReader()
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.