openpojo icon indicating copy to clipboard operation
openpojo copied to clipboard

Add the ability to get all inherited fields in PojoClass interface.

Open oshoukry opened this issue 7 years ago • 2 comments

Need a way to get all inherited fields in one call, something like:

PojoClass {
  [...]
  public List<PojoField> getAllPojoFields();  // return all declared and inherited.
  public List<PojoField> getInheritedPojoFields(); // return inherited only fields.
}

This will simplify workflow instead of having to re-implement the boilerplate code over and over in every framework.

oshoukry avatar May 30 '17 17:05 oshoukry

what about getPojoField(boolean inherited) overload

drdamour avatar May 30 '17 17:05 drdamour

I am not a fan of boolean parameters that change behavior in general. I can see the simplicity in how it looks though.

oshoukry avatar May 30 '17 18:05 oshoukry