Property fields

#1

Hello

 

How can I use a Property, such as:

javafx.beans.property.BooleanProperty

as a field within an entity class?

I want to bind a JavaFX CheckBoxTableCell control to the property.

 

Thanks

Russ

#2

You can use a simple boolean or Boolean persistent field in an entity class, and wrap it with a set and get methods that will implement a BooleanProperty type property (i.e. the underlying persistent field of a BooleanProperty could be java.lang.Boolean).

ObjectDB Support

Reply