Skip to content

Instantly share code, notes, and snippets.

@amischler
Created October 3, 2014 14:38
Show Gist options
  • Save amischler/2e62a8feb5f9d4da992d to your computer and use it in GitHub Desktop.
Save amischler/2e62a8feb5f9d4da992d to your computer and use it in GitHub Desktop.
public class Contact extends AbstractJcrEntity {
@JcrProperty
private StringProperty name = new SimpleStringProperty();
@JcrProperty
private DoubleProperty height = new SimpleDoubleProperty();
@JcrProperty
private ObjectProperty<Date> birthday = new SimpleObjectProperty<Date>();
@JcrChildNode(createContainerNode = false)
private ObjectProperty<Address> address = new SimpleObjectProperty();
@JcrProperty
private ObjectProperty<Role> role = new SimpleObjectProperty<Role>();
@JcrProperty
private ListProperty<String> hobbies = new SimpleListProperty<String>(FXCollections.<String>observableArrayList());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment