MongoDB

If you are here then definitely you have heard about NoSQL databases and MongoDB. Mongodb is one of the most popular document based NoSQL databases. This page will help you learn mongodb queries and how to perform operations using java.

  • Mongodb Documents
    • The article introduces mongoDB and explains about mongoDB documents.
  • Installin on windows
    • The article shows how installing mongodb on windows can be done and shows how to start and connect to mongodb database
  • Creating database
    • The article describes how to create database and access it.
  • Insert Documents
    • The article explains and demonstrates  insert query with the help of an example.
  • Bulk insert
    • The article describes and explains  bulk insert with example.
  • Finding documents
    • The article describes find query with the help of an example and diagram
  • Update query
    • The article describes the update query and provides an example.
  • Upsert operation
    • The article helps understand concept of upsert operation with the help of example queries and resultant data
  • Remove operation:
    • The article describes remove operation and explains it with respect to official documentation and a simple example.

Using Mongodb with Java

The following two tabs change content below.
Prasad Kharkar is a java enthusiast and always keen to explore and learn java technologies. He is SCJP,OCPWCD, OCEJPAD and aspires to be java architect.

Latest posts by Prasad Kharkar (see all)

3 thoughts on “MongoDB

  • September 1, 2017 at 5:42 am
    Permalink

    Is there a possibility to connect JPA with mongoDb exactly we do it with Mysql?

    Thanks
    Andrea

    Reply
    • September 4, 2017 at 2:42 pm
      Permalink

      Hi Andrea, JPA is for relational databases. Mongodb is a NoSQL document based database. You can have a look at Morphia which provides similar functionality fro mongodb as that of any JPA implementation.

      Reply
  • April 2, 2018 at 3:34 pm
    Permalink

    Hi Prasad,
    I am trying to connect Mongo Db using Parasoft tool is there any connection String to connect it?
    Mongo Db connection is LDAP authentication with SSl as ‘unvalidated insecure’. If not is there any way for connecting same Db using JAVA

    Can you help me

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *