@Target(value=TYPE) @Retention(value=RUNTIME) public @interface LimitToFields
sould avoid problems with anonymous sub classes or proxy implementations for example limittofields will not work for fields marked with @Property and a specified fieldname
Attention: when limiting to a type, this will include all fields defined in that class, NOT honoring fields that might be ignored by it will be inherited by subclasses, so in subclasses you will need to add all fields manually, use the type or an empty version. Setting type to Object.class uses all fields again.
Copyright © 2018. All rights reserved.