Details

      Description

      MongoItemReaderWriterBase.java:[159,25] getDB(java.lang.String) in com.mongodb.Mongo has been deprecated. It should be updated to use the correct API.

      http://api.mongodb.com/java/3.3/com/mongodb/Mongo.html

      @Deprecated
      public DB getDB(String dbName)

      Deprecated. use MongoClient.getDatabase(String)

      Gets a database object. Users should use MongoClient.getDatabase(String) instead.
      The DB class has been superseded by MongoDatabase. The deprecation of this method effectively deprecates the DB, DBCollection, and DBCursor classes, among others; but in order to give users time to migrate to the new API without experiencing a huge number of compiler warnings, those classes have not yet been formally deprecated.

      Parameters:
      dbName - the name of the database to retrieve
      Returns:
      a DB representing the specified database

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  cfang Cheng Fang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: