|
At the moment, i have an option on `MapperOptions` to select that representation. It currently defaults to `STANDARD`, iirc. If a user doesn't pass in a `MongoClient`, I use that option to configure it. An argument could be made that if folks are passing in their own client refs they should configure them correctly. Alternately, Morphia could configure that for them if the option value is non-null. (We'd have to change that default, obviously.) This idea seemed more urgent in the dark of night with failing tests but having slept on it, I'm perfectly ok with just documenting the need to configure that if 1) they create their own client and 2) they even use UUIDs at all. Most users probably won't.
|
|
jlee@antwerkz.com can you give a sense of how Morphia would use this? Given that Morphia users are just as likely as anyone else to have legacy UUID byte orders stored in MongoDB, I don't think Morphia, or any library, should unilaterally declare the UUID representation for the application.
|