We have started using Jongo in our project. We are using Mongodb 3. and Jongo 1.2. We are worried about the deprecated method .
Is there any plan to change the Jongo constructor to accept "MongoDatabase" as well other than "DB" ?
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;
}
Thanks,
Vins