Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
Description
In addition to other methods of dealing with "unknown" properties (Json Object fields of which name does not match any declared setter or constructor arg of type to deserialize to), it would be nice to have a simple annotation that allows:
- enumerating properties to ignore
- specify "all unknown" (perhaps String "*")
- possibly limited wildcarding (suffix/prefix with leading/trailing asterisk)
to cover a common case of having to ignore some or all properties (legacy data that gets passed in but that is not to be mapped or such).
One additional use case: this could also be used to prevent binding of sub-trees that are not useful. If such property/-ies are defined using this method, such sub-trees are skipped without binding. This is more efficient than having a dummy set method that ignores its argument.