title: MyBatis - No constructor found
body: <p>I have a problem with MyBatis mapping.
  I have a domain class like this:</p>
  
  <pre><code>public class MyClass
  {
     private Long id;
     private Date create;
     private String content;
  
     MyClass (Long id, Date create, String content)
     {
         this.id = id;
         this.create = create;
         this.content = content;
     }
  
     //getters and setters
  </code></pre>
  
  <p>A mapper class with a method like this:</p>
  
  <pre><code>   @Select("SELECT * FROM MyTable WHERE id=#{id}")
     MyClass getMyClass (@Param("id") Long id);
  </code></pre>
  
  <p>In the database the three columns are of type Number, Timestamp and Clob and have the same name as in the class fields.</p>
  
  <p>When I use this method I get a: 
  <em>ExecutorException: No constructor found in [MyClass; matching [java.math.BigDecimal, java.sql.Timestamp, oracle.jdbc.OracleClob]</em></p>
  
  <p>But <strong>if I remove the constructor from Myclass, then there is no problem at all</strong>. I would like to have the constructor, how can I fix it?
  I tried adding the @Results annotation in the mapper like so, but it didn't make any difference:</p>
  
  <pre><code>   @Results(value = {
        @Result(column = "id", property = "id", javaType = Long.class),
        @Result(column = "create", property = "create", javaType = Date.class),
        @Result(column = "content", property = "content", javaType = String.class)
     })
  </code></pre>