michel-kraemer/bson4jackson — pull request #14 by jroper (2011-12-23 13:00:09+00:00)
Title: Support proper typed generation of all types that the parser can parse

Up until now the Mongo Jackson Mapper has only used bson4jackson to parse MongoDB responses, now I tried to see about using it to serialise requests, and found that the serialisation support as far more limited than the deserialisation support. So, I've implemented serialisation support for all types that bson4jackson knows how to deserialise, including:
* java.util.Date/java.util.Calendar serialised to BSON date time type
* java.util.regex.Pattern serialised to BSON pattern type
* ObjectId serialised to BSON ObjectId type
* Timestamp serialised to BSON Timestamp type
* JavaScript serialised to BSON Javascript(with/without scope) type
* Symbol serialised to BSON symbol type

Also created new BsonModule for registering all BSON serializers, and deprecated BsonUuidModule in favour of using the BsonModule.