@groovy.transform.CompileStatic abstract class HibernateSpec extends Specification
Specification for Hibernate tests
Type | Name and description |
---|---|
HibernateDatastore |
hibernateDatastore |
org.springframework.transaction.PlatformTransactionManager |
transactionManager |
org.springframework.transaction.TransactionStatus |
transactionStatus The 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()
|
|
org.hibernate.Session |
getHibernateSession()
|
|
protected java.lang.String |
getPackageToScan(grails.config.Config config) Obtains the default package to scan |
|
org.hibernate.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