-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Currently, if a class attempts to use pojomatic, does not have any Pojomatic annotations, pojomatic will throw an exception.
It has been my experience that by far the most common way to deal with this has been to place an @AutoProperty annotation on the class. This ends up being boilerplate, and often is initially forgotten.
I would like to propose that when pojomatic finds no pojomatic annotations on a class or any of its superclasses, that it assume the presence of @AutoProperty on each class in the inheritance hierarchy.
Strictly speaking, this would be an incompatible change, but only in the sense that pojomatic would actually do something useful where it currently throws an exception. https://xkcd.com/1172/ not withstanding, this is a cost I'm willing to accept.