title: What is the best approach in case of JPA with JavaFx application?
body: <p>I,m writing JavaFx with Hibernate, JPA database engine. I'm really excited about JavaFx property use... unfortunately I don't know how to connect it with JPA. Can anybody recommend good tutorial? Is there is any Hibernate/JPA solutions to automatically generate mapping with JFX properties?</p>
  
  <p>And one more question I did try to user SimpleObjectProperty: </p>
  
  <pre><code>myObjectProperty = new SimpleObjectProperty&lt;&gt;();
  myObjectProperty.set(myObject);
  myObjectProperty.addListener(new ChangeListener&lt;myObject&gt;() {
          @Override
          public void changed(ObservableValue&lt;? extends myObject&gt; ov, myObject t, myObject t1) {
              System.err.println("CHANGE DETECTED");
          }
      });
  </code></pre>
  
  <p>when I'm changing object, change is NOT detected ... any idea why?</p>