[JAVA-4587] Support setting the default UUID representation for BasicBSONEncoder and BasicBSONDecoder Created: 21/Apr/22  Updated: 28/Oct/23  Resolved: 29/Apr/22

Status: Closed
Project: Java Driver
Component/s: BSON, Legacy API
Affects Version/s: None
Fix Version/s: 4.7.0

Type: New Feature Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed

 Description   

Both BasicBSONEncoder and BasicBSONDecoder assume a UuidRepresentation of JAVA_LEGACY in a way that is not configurable. Allow it to be configured process-wide using a static method for each class to set the default to a different UuidRepresentation.



 Comments   
Comment by Githook User [ 29/Apr/22 ]

Author:

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

Message: Support global configuration of UuidRepresentation for legacy codec (#925)

Both BasicBSONEncoder and BasicBSONDecoder assume a UuidRepresentation of
JAVA_LEGACY in a way that is not configurable. Allow it to be configured process-wide
using a static method for each class to set the default.

JAVA-4587
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6d501b7278cac1072e6870df3ff3af812ade5452

Generated at Thu Feb 08 09:02:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.