OrientDB should support JavaFX "primitive" types.

74 views
Skip to first unread message

Steven Gertiser

unread,
Nov 21, 2014, 2:18:37 AM11/21/14
to orient-...@googlegroups.com

Hi folks,

The getter-setting convention for JavaFX primitive types looks like this:

class Account {
   
    // .. other members

    private StringProperty middleName;

    public String getMiddleName() {
        return middleName.get();
    }

    public StringProperty middleNameProperty() {
        return middleName;
    }

    public void setMiddleName(String middleName) {
        this.middleName.set(middleName);
    }
}

This makes it possible to use such classes with JPA and REST and keep the binding capabilities for the UI.

In OrientDB, trying to use a class like this results in an error that looks like this:

WARNING: Setter method public void domain.Account.setMiddleName(java.lang.String) for field middleName in class class domain.Account cannot be bound to proxied instance: parameter class don't match with field type class javafx.beans.property.StringProperty
Exception in thread "main" java.lang.NullPointerException

I think support for this would be a worthy addition to the product.

Looking forward to hearing your thoughts. Cheers, Steve

Andrey Lomakin

unread,
Nov 21, 2014, 4:14:27 AM11/21/14
to orient-database

Hi ,
+1 as for me . Good addition .

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages