I have this class making use of enums. Parsing to Firebase json used to work just fine - using Jackson. While migrating to firebase-database:9.0.0 I get the following:
com.google.firebase.database.DatabaseException: No properties to serialize found on class .... MyClass$Kind
where Kind is the enum declared type. The class:
public class MyClass {
public enum Kind {W,V,U};
private Double value;
private Kind kind;
/* Dummy Constructor */
public MyClass() {}
public Double getValue() {
return value;
}
public void setValue(Double value) {
this.value = value;
}
public Kind getKind() {
return kind;
}
public void setKind(Kind kind) {
this.kind = kind;
}
}
I suspect Firebase no longer uses Jackson when serializing setValue(new MyClass()).
Is there a way to get enum types serialized? Or some means to be explicit with respect to the serializer method?