Specification for Hibernate tests
| Type | Name and description |
|---|---|
HibernateDatastore |
hibernateDatastore |
org.springframework.transaction.PlatformTransactionManager |
transactionManager |
org.springframework.transaction.TransactionStatus |
transactionStatusThe transaction status |
| Type | Name and description |
|---|---|
void |
cleanup() |
java.util.Map |
getConfiguration()@return The configuration |
java.util.List<java.lang.Class> |
getDomainClasses()@return The domain classes |
org.hibernate.Session |
getHibernateSession()@return the current Hibernate session |
protected java.lang.String |
getPackageToScan(grails.config.Config config)Obtains the default package to scan |
org.hibernate.SessionFactory |
getSessionFactory()@return the current session factory |
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)