title: Grails/Hibernate: Field "version" doesn't have a default value
body: <p>I added a new domain class to my project, and when call the method to add a new instance to the table, throw a strange error.</p>
  
  <hr>
  
  <p>This is the call: (a simple save and print errors if not)</p>
  
  <pre><code>if (!distributor.save()) {
      flash.error = message(code: 'unexpectedError')
      distributor.errors.each {
          println it  
      }
  }
  </code></pre>
  
  <hr>
  
  <p>This is the stacktrace: (only the caused by portion)</p>
  
  <pre><code>Caused by: java.sql.SQLException: Field 'version' doesn't have a default value
  </code></pre>
  
  <hr>
  
  <p><strong>Does someone got this error?</strong> I don't understand why this is happening because <code>version</code> is a auto-generated field by Grails/Hibernate framework.</p>
  
  <p>I tried to delete the table and recreate it but still getting the same error. <strong>Could that be an bug?</strong> I don't think that i am doing wrong because is not my first table or relationship in the project.</p>
  
  <p>Any help will be appreciated.</p>