@groovy.transform.CompileStatic abstract class HibernateSpec extends Specification
Specification for Hibernate tests
| Type | Name and description |
|---|---|
HibernateDatastore |
hibernateDatastore |
PlatformTransactionManager |
transactionManager |
TransactionStatus |
transactionStatusThe transaction status |
| Constructor and description |
|---|
HibernateSpec() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
cleanup() |
|
java.util.Map |
getConfiguration()
|
|
java.util.List<java.lang.Class> |
getDomainClasses()
|
|
Session |
getHibernateSession()
|
|
protected java.lang.String |
getPackageToScan(Config config)Obtains the default package to scan |
|
SessionFactory |
getSessionFactory()
|
|
boolean |
isRollback()Whether to rollback on each test (defaults to true) |
|
void |
setup() |
|
void |
setupSpec() |
The transaction status
Obtains the default package to scan
config - The configuration
Whether to rollback on each test (defaults to true)
Groovy Documentation