title: MyBatis Mapping multiple columns to an array
body: <p>I'm working with a (legacy) java app and DB and I need to map with MyBatis multiple columns to a single Array property</p>
  
  <p>My query is something like</p>
  
  <pre><code>select price1, price2, price3, qty1, qty2,qty3 ... from table where ....
  </code></pre>
  
  <p>and the corresponding pojo is</p>
  
  <pre><code>public class Price{
      double[] prices = new double[3]
      int[] quantity = new int[3]
      public double[] getPrices(){}
      public void setPrices(double[] prices){...}
      public int[] getQty(){...}
      public void setQty(int[] quantities){...}
      ....
  }
  </code></pre>
  
  <p>Unfortunatly I can't modify neither the query nor the java object</p>
  
  <p>Any tip?</p>