title: Which variables use in JavaFX/Hibernate application
body: <p>Let's say we got a <code>Entity/Class</code> Person which I want to populate in TableView in JavaFX component.</p>
  
  <p>What type of data should I populate Person class - <code>String</code> or <code>SimpleStringProperty</code>?</p>
  
  <p>In both cases I dont get fully what I want. If I will use String variable I won't be able to listen to any changes done in my TableView (according to post <a href="https://stackoverflow.com/questions/13381067/simplestringproperty-and-simpleintegerproperty-tableview-javafx">clickMe</a>). On the other hand if I will use <code>SimpleStringProperty</code> I will get and Exception that hibernate can't convert <code>SimpleStringProperty</code> into String which is the type being used in database. How can it be done more cleverly?</p>
  
  <pre><code>@Entity
  public Person {
      private String name;     // or SimpleStringProperty
      private String Surname; // or SimpleStringProperty
  
      // getter and setters removed to simplify example
  }
  </code></pre>