Have you ever experienced that the Bootstrap doesn’t save (with flush or without flush – same result) anything in the db?
I’m using the Spring security core plugin, and I’m creating roles and user in the init-method.
My app starts up fine, without errors, but I have nothing in my db…
I have made some changes, I’m running a MySQL-database and might have made some wierd changes that enable this behaviour.
Has anyone experienced this?
Are you certain that your objects pass validation?
I always use
for objects I create in
BootStrap.groovy.savewill throw an exception if validation fails.An alternative would be to check that your call to
savereturns true.