Mapping to POJOs couldn't be easier!
Since MongoDB uses BSON, a binary form. of JSON, to store its documents, a JSON mapper is a perfect mechanism for mapping Java objects to MongoDB documents. And the best Java JSON mapper is Jackson. Jackson's parsing/generating interface fits serialising to MongoDBs documents like a glove. Its plugins, custom creators, serialisers, views, pluggable annotators and so on give this mapping library a massive head start, making it powerful, performant, and robust.
Project documentation
The official documentation for this project lives here.
Looking specifically for the Maven dependency snippet? It's Here.
Mailing lists
The MongoDB Jackson Mapper users mailing list is hosted here.
Since MongoDB uses BSON, a binary form. of JSON, to store its documents, a JSON mapper is a perfect mechanism for mapping Java objects to MongoDB documents. And the best Java JSON mapper is Jackson. Jackson's parsing/generating interface fits serialising to MongoDBs documents like a glove. Its plugins, custom creators, serialisers, views, pluggable annotators and so on give this mapping library a massive head start, making it powerful, performant, and robust.
Project documentation
The official documentation for this project lives here.
Looking specifically for the Maven dependency snippet? It's Here.
Mailing lists
The MongoDB Jackson Mapper users mailing list is hosted here.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/301743/viewspace-749906/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/301743/viewspace-749906/