title: MissingMethodException on domain class save in Grails 1.3.7
body: <p>I'm having a problem calling the save method on a domain object. The error is: </p>
  
  <pre><code>groovy.lang.MissingMethodException: No signature of method: static my.awesome.Class.FeedHit.save() is applicable for argument types: () values: []
  Possible solutions: save(), save(java.lang.Boolean), save(java.util.Map), wait(), any(), wait(long)
  </code></pre>
  
  <p>I'm going through an array of FeedHits, updating a flag, and then calling the save method:</p>
  
  <pre><code>void updateFeedHits(Set&lt;FeedHit&gt; list, FeedHitStatus status) {
      for (FeedHit feedHit: list) {
          feedHit.status = status
          try {
              feedHit.save()
          } catch (Exception ex) {
              log.info("unknown exception during update FeedHit", ex)
          }
      }
  }
  </code></pre>
  
  <p>I've seen other StackOVerflow users have the same problem, but only during tests. This code is in normal release code. </p>
  
  <p>Any help would be appreciated.</p>
  
  <p>EDIT:</p>
  
  <p>Here is the FeedHit object, slightly edited.</p>
  
  <pre><code>class FeedHit {
  
      Feed feed
      String title
      String body
      String url
      FeedHitStatus status
      String sourceId
      String hash
      Date publishedDate
      Date dateCreated = new Date()
      Integer pos = -1
  
      static constraints = {
          alert(nullable: true)
          title(nullable: true)
          body(nullable: true)
          url(nullable: true)
          status(nullable: true)
          sourceId(nullable: true)
          hash(nullable: true)
          pos(nullable: true)
          publishedDate(nullable: true)
          dateCreated(nullable: true)
      }
  
      static mapping = {
          table('alert_hit')
          autoTimestamp false
          version(false)
          alert(column: 'alert_id')
          body(sqlType: 'text')
          url(sqlType: 'text')
          sourceId(column: 'sourceId')
          publishedDate(column: 'publishedDate')
          dateCreated(column: 'dateCreated')
      }
  
      /**
       * Generates a hash from title, body and url.
       */
      public AlertHit generateHash() {
           StringBuffer sb = new StringBuffer();
          if (this.title != null) {
              sb.append(this.title);
          }
          if (this.body != null) {
              sb.append(this.body);
          }
          if (this.url != null) {
              sb.append(this.url);
          }
          if (this.publishedDate != null) {
              sb.append(this.publishedDate.getTime());
          }
          if (sb.length() &gt; 0) {
              hash = Md5Hash.hash(sb.toString());
          }
          this
      }
  
      @Override
      public String toString() {
          return "AlertHit{" +
              "id=" + id +
              ", alert=" + alert +
              ", title='" + title + '\'' +
              ", body='" + body + '\'' +
              ", url='" + url + '\'' +
              ", status=" + status +
              ", sourceId='" + sourceId + '\'' +
              ", hash='" + hash + '\'' +
              ", publishedDate=" + publishedDate +
              ", dateCreated=" + dateCreated +
              ", pos=" + pos +
              ", version=" + version +
              '}';
      }
  }
  </code></pre>