I have the following structure, for example:
public class Entity {
private String name;
...
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
public class Person extends Entity {
...
}
I have upgraded the Firebase SDK from the old one (before Google buying it) and now I can only obtain the values from the fields declared in that class. Anything that is in a super class can't be accessible.
Every time I use the following code to fetch a Person
object, it doesn't get the fields declared in Entity
.
dataSnapshot.getValue(Person.class);
ClassMapper: No setter/field for name found on class com.package.Person
I don't want to write every getter and setter in every inner class, that doesn't make any sense. There's got to be a better (and cleaner) way!