gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [gora] drazzib opened a new pull request #207: GORA-649 Replace usage of deprecated API of MongoDB driver
Date Mon, 23 Mar 2020 22:46:16 GMT
drazzib opened a new pull request #207: GORA-649 Replace usage of deprecated API of MongoDB
driver
URL: https://github.com/apache/gora/pull/207
 
 
   - Use new `MongoDatabase` and `MongoCollection` API as described on [Databases and Collections](http://mongodb.github.io/mongo-java-driver/3.12/driver/tutorials/databases-collections/)
   - Use [Codec and CodecRegistry](http://mongodb.github.io/mongo-java-driver/3.12/bson/codecs/)
interface instead of `DefaultDBEncoder`
   - `MongoFilterUtil`: Avoid changing query passed as reference so adapted to return an `Optional`
with subfilter to apply
   - Use `org.bson.Document` as container everywhere (replace `DBObject`)
   - Use [Filters](http://mongodb.github.io/mongo-java-driver/3.12/builders/filters/) and
[Projections](http://mongodb.github.io/mongo-java-driver/3.12/builders/projections/) helper
methods to facilitate the creation of filter documents
   - `MongoDBResult`: pass `cursor` and `size` as constructor args

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message