title: Cucumber-JVM 3 - io.cucumber.datatable.UndefinedDataTableTypeException
body: <p>I updated from Cucumber-JVM 2.4.0 to 3.0.2 in my <code>pom.xml</code> and DataTables started throwing this exception:</p>
  
  <blockquote>
    <p>io.cucumber.datatable.UndefinedDataTableTypeException: Can't convert
    DataTable to List&lt; jcucumberng.steps.pojos.Income >. Please register a
    DataTableType with a TableEntryTransformer or TableRowTransformer for
    class jcucumberng.steps.pojos.Income</p>
  </blockquote>
  
  <p>I changed all my imports to</p>
  
  <pre><code>import io.cucumber.datatable.DataTable;
  </code></pre>
  
  <p>I did an <code>mvn clean install</code> and compilation was successful but steps involving DataTables no longer work after the update.</p>
  
  <p>Current code:</p>
  
  <pre><code>// Feature
  When I Enter My Regular Income Sources
    | name   | amount | frequency     |
    | Salary | 25000  | every 2 weeks |
  
  
  // Stepdef
  @When("^I Enter My Regular Income Sources$")
  public void I_Enter_My_Regular_Income_Sources(DataTable dataTable) throws Throwable {
      List&lt;Income&gt; incomes = dataTable.asList(Income.class);
  
      // More code    
  }
  
  
  // Custom type
  public class Income {
  
      private String name = null;
      private String amount = null;
      private String frequency = null;
  
      public Income(String name, String amount, String frequency) {
          this.name = name;
          this.amount = amount;
          this.frequency = frequency;
      }
  
      // Getters and setters
  }
  </code></pre>
  
  <p>Is there a new way to use the DataTables in Cucumber-JVM v3.x.x?</p>
  
  <p><strong>UPDATE:</strong>
  <a href="https://i.stack.imgur.com/k5dsq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k5dsq.png" alt="enter image description here"></a></p>