I'm just building a small persistence framework and I'm running into trouble using the CtClass.getFields()-Method and the FieldExpr-Replacer:
It seems not to be possible to get all fields including private or protected fields from base classes. Is there some standard way to resolve this problem or do I have to run through the class hierarchy recursively (might even be the cleaner solution ...)?
Yes, you must recursively run through the class hierarchy.
Fields are never overridden. So collecting all the fields
should be easy.