Open Bringoff opened 7 years ago
As far as I am aware, using the isX()
pattern for boolean properties is optional and not required. Also you implied that the current method naming does work with JavaBeans, or is it broken?
Anyhow, leaving this open for future discussion and consideration. -ut
Well, it is not requirement, but in case when I already have some entities with getters and setters (and Android Studio generates getters for boolean with is
prefix) and want to continue use them, I am not able to do this because greendao complains about lack of getters. So it may be nice to support both name patterns.
Let's imagine we have the following class:
I want to have getters and setters. Boolean getter should have name
isPending
, because it is boolean. But greenDAO expects onlygetPending
as I see. My little perfectionist is crying inside, because it's ugly. I'm renamingpending
field toisPending
and havegetIsPending
getter, but it is still ugly. Is it possible to satisfy JavaBean getters naming conventions.