public MongoCollection getCollection(String databaseName,String collectionName){
DB database = mongoClient.getDB(databaseName); //depricated method
Jongo jongo = new Jongo(database); // Custructor only accept DB object
MongoCollection collection = jongo.getCollection(collectionName);
return collection;
}
Why is getDB deprecated? What is the substitute here?