blob: 9019fbf1a3cabc786a084b3d35196bd1792a6704 [file] [log] [blame]
package functional.tests
import org.grails.orm.hibernate.HibernateDatastore
class BootStrap {
HibernateDatastore hibernateDatastore
def init = { servletContext ->
assert hibernateDatastore.connectionSources.defaultConnectionSource.settings.hibernate.getConfigClass() == CustomHibernateMappingContextConfiguration
Product.withTransaction {
new Product(name: "MacBook", price: "1200.01").save()
}
}
def destroy = {
}
}