[JAVA-3097] Create Convention that customises which properties are set Created: 19/Nov/18 Updated: 30/Mar/22 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | POJO |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ross Lawley | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Jackson allows for finer grained control over which properties are serialized. The SET_PRIVATE_FIELDS_CONVENTION allows some flexibility by allowing private fields to be set directly. However, this could be extended to allow for greater flexibility. An example of the ObjectMapper api allows flexibility for controlling: getter, setter and field properties:
|