public class DAOTest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DAOTest.Builder<B extends DAOTest.Builder<B>> |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
org.hibernate.SessionFactory |
getSessionFactory()
Returns the current active session factory for injecting to DAOs.
|
<T> T |
inTransaction(Callable<T> call)
Performs a call in a transaction
|
void |
inTransaction(Runnable action)
Performs an action in a transaction
|
public void after()
public org.hibernate.SessionFactory getSessionFactory()
SessionFactory
with an open session.public <T> T inTransaction(Callable<T> call)
T
- the type of the returned resultcall
- the callpublic void inTransaction(Runnable action)
action
- the actionCopyright © 2019. All rights reserved.