How to take a particular value using Java

8 views
Skip to first unread message

prem kumar

unread,
Nov 7, 2012, 12:46:01 PM11/7/12
to mongod...@googlegroups.com


Hi,

        I have insert a value for mongodb. But I want to take particular value using Java.

Example :

         { "_id" : { "$oid" : "5098e0eefa60eb3bd20a8d5f"} , "id" : 105 , "prodname" : "Odonil Jasmine" , "path" : "sites/default/files/odonil-jasmine.jpg" , "subid" : 3001 , "pid" : 5055 , "mer-2" : 24}

            I have insert a value for mongodb. I want to take a value for id or pid using java.

            That is 105 or 5055.     

            I want to use a java example. Let you help for me.

                                      Thanks for advance.

Regards,
Prem


Octavian Covalschi

unread,
Nov 7, 2012, 1:47:10 PM11/7/12
to mongod...@googlegroups.com
Have you looked into any java+mongodb tutorial at all?

If not this would be a good start http://www.mongodb.org/display/DOCS/Java+Tutorial





--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

Reply all
Reply to author
Forward
0 new messages