title: Mapping breaks my domain class
body: <p>When I add the following mapping to my domain class, I get an error. Can someone help me see what I'm doing wrong here?</p>
  
  <h2>Domain Class</h2>
  
  <pre><code>package sample
  
  class Todo {
  
  
      String name
      String note
      Date dateCreated
      Date lastUpdated
      Date dueDate
      Date lastModifiedDate
      Date completedDate
      String priority
      String status = "Started"
      User owner
      Category category
  
      static belongsTo = [User, Category]
  
      static constraints = {
          name (blank:false)
          priority()
          status()
          note (maxSize:1000, nullable:true)
          completedDate(nullable:true)
          dueDate(nullable:true)
      }
  
      String toString() {
          name
      }
  </code></pre>
  
  <p>}</p>
  
  <h2>Mapping I Want to Add</h2>
  
  <pre><code>static mapping = {
      table 'todo-tbl'
  
      columns {
          name column: 'name-str'
          note column: 'note-str'
      }
      cache true
  }
  </code></pre>
  
  <h2>Error I Get When Adding Mapping</h2>
  
  <blockquote>
    <p>Error 500: Internal Server Error URI /sample/todo/list Class
    org.h2.jdbc.JdbcSQLException Message Table "TODO" not found; SQL
    statement: select this_.id as id72_0_, this_.version as version72_0_,
    this_.category_id as category3_72_0_, this_.completed_date as
    completed4_72_0_, this_.date_created as date5_72_0_, this_.due_date as
    due6_72_0_, this_.last_modified_date as last7_72_0_,
    this_.last_updated as last8_72_0_, this_.name-str as name9_72_0_,
    this_.note-str as note10_72_0_, this_.owner_id as owner11_72_0_,
    this_.priority as priority72_0_, this_.status as status72_0_ from
    todo-tbl this_ limit ? [42102-164]</p>
  </blockquote>