5e7d5e9df42d1cf5888c1420ef5d073097e8bd0b
- don't try to generate getKey() for abstract classes; - get all of our class's fields, not just the ones declared in this class; do so using ClassUtil.getFields() rather than Class.getFields() because the latter returns the fields in a random order which is annoying whereas ClassUtil.getFields() returns them in an intuitive order (declaration order of the super-most class, then declaration order of the first derived class and so on); - use Field.getAnnotations() rather than Field.getDeclaredAnnotations() just for consistency, even though you can't "override" a field and inherit annotations from your parent class (but if someday we have annotated PersistentRecord methods we'll want to use getAnnotations() not getDeclaredAnnotations() so we should provide appropriate copy and paste fodder).
Description
Languages
Java
95.6%
Shell
4.3%