title: OpenCSV - How to map selected columns to Java Bean regardless of order?
body: <p>I have a CSV file with the following columns: <code>id</code>, <code>fname</code>, <code>telephone</code>, <code>lname</code>, <code>address</code>.</p>
  
  <p>I have a <code>Person</code> class with <code>id</code>, <code>fname</code> and <code>lname</code> data members. I want to map only these columns to <code>Person</code> object from a CSV file and discard <code>telephone</code> and <code>address</code> columns. How can I do this? The solution must scale as more columns are added in future. And should work regardless of column position. </p>
  
  <p>In an ideal solution user will only specify columns to read and it should just work.</p>