On Saturday, October 13, 2012 7:49:35 AM UTC-4, Artem Redkin wrote:
Hi!
I was wandering, why is java driver's DBCollection parametrized with DBObject and not with generic type? It is possible to provide custom solution for serializing/deserializing with DBEncoderFactory, but one is limited to wrapping custom classes with DBObject... It limits a bit libraries, such as mongo-jackson-mapper.
Are there any plans/wishes to implement this? I've poked around in the source codes and implemented it (all default methods operate with DBCollection<DBObject>, so interoperability with 3-party code should not be a problem), would you be interested in pull-request?
Thanks!