Jongo constructor accepts only DB object, not MongoDatabase

129 views
Skip to first unread message

Vins

unread,
May 27, 2015, 4:59:07 PM5/27/15
to jongo...@googlegroups.com
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

roton meta

unread,
May 14, 2019, 10:46:18 AM5/14/19
to Jongo
Reply all
Reply to author
Forward
0 new messages