[JAVA-476] Allow controlling _id generation on insert/save Created: 26/Nov/11  Updated: 31/Mar/15  Resolved: 13/Jun/14

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

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Unassigned
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Possibly allow controlling this with WriteConcern option, and/or settable on the collection (for a capped collection).



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-476: Changed CollectibleCodec interface to have three methods, so that it doesn't have to return the existing id unless needed.
MongoCollection now has a Codec property instead of a CollectibleCodec property, and does instanceof check on it as necessary.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/d8480004691c233e9e67e90ea9969368fe2a2faf

Comment by Githook User [ 13/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-476: Changed CollectibleCodec interface to have three methods, so that it doesn't have to return the existing id unless needed.
MongoCollection now has a Codec property instead of a CollectibleCodec property, and does instanceof check on it as necessary.
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/d8480004691c233e9e67e90ea9969368fe2a2faf

Comment by Githook User [ 11/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-476: Changed CollectibleCodec interface to have three methods, so that it doesn't have to return the existing id unless needed.
MongoCollection now has a Codec property instead of a CollectibleCodec property, and does instanceof check on it as necessary.
Branch: rozza/codecs-bson-rename-ontop
https://github.com/mongodb/mongo-java-driver/commit/3151a8f7dba757fd8138563c594c3e4826d51cd8

Comment by Jeffrey Yemin [ 10/Jun/14 ]

Currently, this only works with the new MongoCollection<T> API, not DBCollection.

Comment by Githook User [ 05/Jun/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-476: Changed CollectibleCodec interface to have three methods, so that it doesn't have to return the existing id unless needed.
MongoCollection now has a Codec property instead of a CollectibleCodec property, and does instanceof check on it as necessary.
Branch: codecs-bson-rename
https://github.com/mongodb/mongo-java-driver/commit/c38a7de0ba728f3c0b1898a3b7e798b20d8e6e0a

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