[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:
Duplicate
is duplicated by JAVA-2972 serialization by field Convention Closed
Related
related to JAVA-3040 CodecConfigurationException with subt... Closed

 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:

mapper.setVisibility(IS_GETTER, NONE)
        .setVisibility(GETTER, NONE)
        .setVisibility(SETTER, NONE)
        .setVisibility(FIELD, ANY)


Generated at Thu Feb 08 08:58:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.