Announcement Announcement Module
Collapse
No announcement yet.
Spring-Data-Mong0 :- Saving JSON directly to Mongo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring-Data-Mong0 :- Saving JSON directly to Mongo

    Hey guys,

    I have been looking at Spring Data and want to use it with my Mongo datastore. I want to be able to save a json directly, instead of mapping it to a POJO. I know I can use the Mongo Java driver directly, use a DBObject and persist it. However I would like to take advantageof Spring MongoTemplate and other things spring provides.

    What do I have to do to save JSON directly? Any examples someone can send me?

    Also, if I want to deal with JSON directly and not entities, is there any value of even using spring-data?

    thanks
    Last edited by dilipl; Mar 13th, 2012, 06:58 PM.
Working...
X