score:0
It's really best if you can keep the data you're working reasonably consistent. That said, there may be a way to hack around this:
public class Document2 {
public Document2() { }
public Document2(double invalid)
{
System.out.print("invalid");
}
public void setValue1(int value1)
{
System.out.println("value1 " + value1);
}
public void setValue2(int value2)
{
System.out.println("value2 " + value2);
}
}
In the "happy" case, Jackson will use the default constructor and set the properties as given. In the NaN
case, it will find the single-argument double constructor, and leave the other properties alone.
More questions
- Serializing nested documents mongoDB to Jackson
- mongodb unwind array nested inside an array of documents
- Updating nested documents in mongodb
- mongodb aggregation framework match by nested documents
- Mongodb unwind nested documents
- MongoDB retrieving selected objects from nested documents
- Query nested documents with C# MongoDB
- Mongodb query nested array documents where property not null
- Querying MongoDB nested array documents using C#
- MongoDB - get documents with the size of a nested array after filtering
- MongoDB Aggregation - Does $unwind order documents the same way as the nested array order
- Mongodb $pull on nested documents
- MongoDB not using index inside nested array of documents
- MongoDB query on list of nested documents
- Insert new document in nested documents in MongoDB
- MongoDB Reading from Nested Documents
- How to limit the number of nested documents shown in MongoDB
- Querying nested documents in mongoDB
- How can I search a collection to find a nested value in one of its documents in MongoDB
- mongodb unwind and sort array nested inside an array of documents
- count documents by specific nested fields values with aggregation-framework in MongoDB
- how to group by nested documents in mongoDB
- MongoDB match documents with elements inside an array of nested arrays
- How to $pull documents in nested array of documents in MONGODB
- find in mongoDB documents with filled nested array and build new result object
- Aggregation in mongodb for nested documents
- MongoDB - Updating all matching Nested Documents
- Updating Nested Embedded Documents in mongodb
- MongoDB MapReduce on deep nested documents issue
- MongoDB querying nested documents with filters
More questions with similar tag
- How to create PDF file in node js with data from mongodb?
- No such template error when calling handlebars helper from Mongodb collection with Meteor
- How to use aggregate to also include the documents that aren't being returned from that method?
- MongoDB: how to get document with specific propety deep inside the object structure?
- Can't start MongoDB on OSX
- Implement dockerized kafka sink connector to mongo
- How often shall we reindex the geospatial data in mongodb?
- Group by date several variables
- Mongodb: Find all documents where at least one array element does not matches?
- Determine difference between empty array and undefined in Mongoose
- Spring batch Item Reader with Mongodb source : How to convert DBObject to a custom POJO in the ItemReader?
- Why my Spring boot web APP IS not working? please
- why is my jwt token returning null on the backside but not the front
- Why is mongodb collection count deprecated?
- bulk update mongo records
- MongoDB and MongoRuby: Sorting on mapreduce
- It is impossible to receive object according to the link
- Dynamic library using static library in c++ name mangling error
- How to install mongo db on Macbook (not M1)
- How to $group conditionally with aggregation
- how to insert nested collection in c# to mongo db
- save formdata file to mongdb?
- One MongoDB instance in a two or more replica set
- Are Mongo PHP write operations Sync or Async?
- How does mongodb guarantee the compound index order with javascript un-ordered object literal creation?
- mongodb Query result - storing the value in jsonObject
- Consistency in document schema in Mongo DB
- Expressjs - Mongoose: Unable to Find Property Value of Record
- Node.js: Streaming from MongoDB to file
- nodejs mongodb and android studio slow fetch speed
Source:
stackoverflow.com