title: JavaFX + SQLite: TableView - incompatible type
body: <p>I made a Maven JavaFX project + an SQLite database.</p>
  
  <p>The database looks like this:
  <a href="https://i.stack.imgur.com/yTMh4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yTMh4.png" alt="Database Structure"></a></p>
  
  <p>Now I can insert succesfully to this database from a form, but I can't show the data inside the TableView. I've followed some tutorials and made a class named ShopDetails:</p>
  
  <pre><code>public class ShopDetails {
  
  private String name;
  private String adress;
  private String city;
  private String state;
  private String country;
  private String zipcode;
  private String phonect;
  private String phonearea;
  private String phonemain;
  }
  </code></pre>
  
  <p>Added the constructor and the getter-setters.
  After that I made an ObservableList inside the Controller:</p>
  
  <pre><code>private ObservableList&lt;ShopDetails&gt; data;
  
  private Connection conn = null;
  private PreparedStatement pst = null;
  private ResultSet rs = null;
  </code></pre>
  
  <p>and connected to the database inside the initialize method, then I added</p>
  
  <pre><code>data = FXCollections.observableArrayList();
  </code></pre>
  
  <p>Then I made a method to set the columns which data I want to show used this method:</p>
  
  <pre><code> private void setCellTable(){
          columnName.setCellValueFactory(new PropertyValueFactory&lt;&gt;("name"));
      //Other columns
      }
  </code></pre>
  
  <p>But it says:
  <a href="https://i.stack.imgur.com/a4dKi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a4dKi.png" alt="The error message I get"></a></p>
  
  <p>Any idea how can I solve this problem?</p>