title: Need to return SINGLE column Date value in mybatis query
body: <p>I'm new to IBatis/Mybatis and ORM and Java in general.
  I have a java mapper interface and the respective mapper xml. The domain object type that the query method should return is called SourceStatus. This object contains several attributes and getters/setters etc. I really only want to populate the date field of the SourceStatus domain object. Am I wiring my mybatis mapper file properly?</p>
  
  <p>Java Mapper file containing method definition:</p>
  
  <pre><code>public interface SupportSourceStatusMapper extends TPBMapper {
      SourceStatus getSupportStatus();
  }
  </code></pre>
  
  <p>MyBatis XML mapper file:</p>
  
  <pre><code>&lt;mapper namespace="com.dealersInc.dao.mapper.SupportSourceStatusMapper"&gt;
  
  &lt;select id="getSupportStatus" resultType="Date"&gt;
      SELECT MAX(s_valid_frm_dat)
          FROM deals.supports_contracts
  &lt;/select&gt;
  
  &lt;/mapper&gt;
  </code></pre>
  
  <p>The SourceStatus domain object:</p>
  
  <pre><code>public class SourceStatus
  {
      private long   contextKey;
      private String serviceName;
      private String contextName;
      private String contextRunType;
      private String contextLabel;
      private String contextStatus;
      private Date   cobDate;
  
  getters/setters ()....
  }
  </code></pre>
  
  <p>Thank you in advance for any help you can provide.</p>