[JAVA-778] add more constructors in BasicDBObject Created: 05/Mar/13  Updated: 08/Nov/17  Resolved: 08/Nov/17

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: 2.10.1
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Olivier Allouch Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Adding more constructors in BasicDBObject would allow a more indented type of writing that resembles the JSON notation.
We use a DBO class like in https://bitbucket.org/davidmc24/mongo-java-aggregate/src/eb1f9884175254e13759ea61fdda40ded8a885a7/src/main/java/org/bitbucket/davidm24/mongodb/aggregate/DBO.java?at=default in all our projects.

(the same goes to DBList)



 Comments   
Comment by Jeffrey Yemin [ 09/Mar/13 ]

The append method isn't suitable enough?

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