You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class:
public class Job
{
private String id;
private String type;
private boolean history;
}
I want to ignore "history" property while saving the record in collection.
I tried @JsonIgnore but this does not work. I can see "history": false in saved record inside document db.
I do not want "history" attribute inside my saved record/document.
We have @DynamoDBIgnore for Amazon dynamo db. Can you please suggest the work around for your SDK?
The text was updated successfully, but these errors were encountered:
dixitprashant444
changed the title
ignore pojo property while saving record in documentdb
ignore model property while saving record in documentdb
Sep 19, 2018
@ealsur Lombok annotation was preventing JsonIgnore to work properly. See this FasterXML/jackson-databind#1226
When I removed lombok annotations from my model class & wrote getters, setters & constructors then JsonIgnore started working.
Thanks for quick reply & confirmation that this was not an issue from your end.
dixitprashant444
changed the title
ignore model property while saving record in documentdb
ignore model property while saving record in document db/cosmos db
Sep 20, 2018
I have a class:
public class Job
{
private String id;
private String type;
private boolean history;
}
I want to ignore "history" property while saving the record in collection.
I tried @JsonIgnore but this does not work. I can see "history": false in saved record inside document db.
I do not want "history" attribute inside my saved record/document.
We have @DynamoDBIgnore for Amazon dynamo db. Can you please suggest the work around for your SDK?
The text was updated successfully, but these errors were encountered: