I have been following the excellent grailsexample.net tutorials. I have got stuck unfortunately when creating a domain / model.

The problem is that when I log into dbconsole I cannot see a table created for my object. I have stopped and started server.

I am expecting to see a listprojects table in the DB schema. But there isn't one there. Am I missing a step? I am wondering if maybe the issue is file permissions for h2 to write to disk (I think I have UAC activated on Windows) but I don't see any warnings or errors in console.

Any pointers would be appreciated!


package testproject

class ListProjects {
	String name
	String description
	Date date
    static constraints = {
Datasource.groovy Note that I have also tried dbCreate = "update" and dbCreate = "create"

environments {
    development {
        dataSource {
            dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', ''
            url = "jdbc:h2:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000"