title: Mybatis select with nested objects
body: <p>I am using MyBatis to do a simple select.</p>
  
  <p>Assume we have the following classes:</p>
  
  <pre><code>class Book {
      private String bookName;
  
      public Book(String bookName){
          this.bookName = bookName;
      }
  
      public String getBookName(){
          return bookName;
      }
  }
  
  
  class Student {
      private String studentName;
      private Book book;
  
      public Student(){}
  
      // getters and setters
  }
  </code></pre>
  
  <p>I have an annotation on a method that returns a <code>Student</code> object.</p>
  
  <pre><code>@Select("Select studentName, book from Students")
  </code></pre>
  
  <p>My Issue is that book is always null. I was under the assumption MyBatis will call the constructor with that JDBC type (in this case String) to populate book. What am I missing or doing incorrectly?</p>