title: Grails or Hibernate not creating missing table
body: <p>I'm new to Grails so forgive my ignorance--if other info is helpful I'll do my best to get it posted.</p>
  
  <p>I've created a single domain model class <code>ToolKitComponent</code> that is defined as:</p>
  
  <pre><code>class ToolKitComponent {
      String componentName
      String componentVersion
      int componentDownloads
      Date compnentLastUpdate
  
      static constraints = {
  
      }
  }
  </code></pre>
  
  <p>I have a controller that I just want to test the ORM by persisting an example, so here's the contents of the controller:</p>
  
  <pre><code>def index() { 
          ToolKitComponent i = new ToolKitComponent()
          i.setComponentName("TestComponent")
          i.setComponentVersion("v1.10")
          i.setComponentDownloads(1)
          i.setCompnentLastUpdate(new Date())
          i.save()
  }
  </code></pre>
  
  <p>I've installed the MySql database plugin and updated my DataSource.groovy to:</p>
  
  <pre><code>dataSource {
      pooled = true
      driverClassName = "com.mysql.jdbc.Driver"
      dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
      loggingSql = true
  }
  
  // other settings
  
  environments {
      development {
          dataSource {
              String dbCreate = "create"
              String url = "jdbc:mysql://localhost/testDataBase"
              String username = "myUser"
              String password = "myPass"
          }
      }
  }
  </code></pre>
  
  <p>I've created the database <code>testDataBase</code> and granted all to the username.</p>
  
  <p>When I run the application, I get:</p>
  
  <pre><code>Hibernate: insert into tool_kit_component (version, compnent_last_update, component_downloads, component_name, component_version) values (?, ?, ?, ?, ?)
  | Error 2012-07-11 20:01:52,727 [http-bio-8080-exec-2] ERROR util.JDBCExceptionReporter  - Table "TOOL_KIT_COMPONENT" not found; SQL statement:
  insert into tool_kit_component (version, compnent_last_update, component_downloads, component_name, component_version) values (?, ?, ?, ?, ?) [42102-164]
  | Error 2012-07-11 20:01:52,752 [http-bio-8080-exec-2] ERROR errors.GrailsExceptionResolver  - JdbcSQLException occurred when processing request: [GET] /TestProject/
  Table "TOOL_KIT_COMPONENT" not found; SQL statement:
  insert into tool_kit_component (version, compnent_last_update, component_downloads, component_name, component_version) values (?, ?, ?, ?, ?) [42102-164]. Stacktrace follows:
  Message: Table "TOOL_KIT_COMPONENT" not found; SQL statement:
  insert into tool_kit_component (version, compnent_last_update, component_downloads, component_name, component_version) values (?, ?, ?, ?, ?) [42102-164]
      Line | Method
  -&gt;&gt;  329 | getJdbcSQLException in org.h2.message.DbException
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |    169 | get                 in     ''
  |    146 | get . . . . . . . . in     ''
  |   4753 | readTableOrView     in org.h2.command.Parser
  |   4731 | readTableOrView . . in     ''
  |    954 | parseInsert         in     ''
  |    375 | parsePrepared . . . in     ''
  |    279 | parse               in     ''
  |    251 | parse . . . . . . . in     ''
  |    217 | prepareCommand      in     ''
  |    415 | prepareLocal . . .  in org.h2.engine.Session
  |    364 | prepareCommand      in     ''
  |   1121 | prepareCommand . .  in org.h2.jdbc.JdbcConnection
  |     71 | &lt;init&gt;              in org.h2.jdbc.JdbcPreparedStatement
  |    267 | prepareStatement .  in org.h2.jdbc.JdbcConnection
  |   1051 | prepareStatement    in     ''
  |    508 | prepareStatement .  in org.apache.commons.dbcp.DelegatingConnection
  |    400 | prepareStatement    in org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper
  |     11 | index . . . . . . . in TestProject.HomeController
  |   1110 | runWorker           in java.util.concurrent.ThreadPoolExecutor
  |    603 | run . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    722 | run                 in java.lang.Thread
  </code></pre>
  
  <p>I'm using Grails 2.0.4.</p>
  
  <p>Any help is appreciated!</p>