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