title: Grails - Hibernate - cannot create model class / table
body: <p>i have  Grails(2.2.1) project and want to with Hibernate create simple "model" class</p>
  
  <pre><code>@Entity
  @Table(name="User")
  class User {
  
      static mapping = {
          datasource 'system'
      }
  
      @Id
      @GeneratedValue
      @Column(name="id")
      private Long userId;
  
      @Column(name="email", nullable=false)
      private String email;
  
      public User(){
  
      }
  
      @Transient
      public Long getUserId(){
          return this.userId;
      }
  
      @Transient
      public String getEmail(){
          return this.email;
      }
  
  }
  </code></pre>
  
  <p>but i getting this follow error :</p>
  
  <pre><code>Caused by MappingException: Could not determine type for: org.springframework.validation.Errors, at table: user, for columns: [org.hibernate.mapping.Column(errors)]
  -&gt;&gt;  334 | innerRun  in java.util.concurrent.FutureTask$Sync
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  |    166 | run       in java.util.concurrent.FutureTask
  |   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
  |    615 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
  ^    722 | run . . . in java.lang.Thread
  </code></pre>
  
  <p>When i remove all hibernate annotations, app is deployed on server but table User has only two attributes (id, version).</p>
  
  <p>Thank you for your help !</p>