Let's say we got a Entity/Class Person which I want to populate in TableView in JavaFX component.
What type of data should I populate Person class - String or SimpleStringProperty?
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 clickMe). On the other hand if I will use SimpleStringProperty I will get and Exception that hibernate can't convert SimpleStringProperty into String which is the type being used in database. How can it be done more cleverly?
@Entity
public Person {
private String name; // or SimpleStringProperty
private String Surname; // or SimpleStringProperty
// getter and setters removed to simplify example
}