@ObjectIdColumn
instead of @PrimaryColumn
or @PrimaryGeneratedColumn
.MongoEntityManager
and MongoRepository
EntityManager
(except for RDBMS-specific, like query
and transaction
). For example:MongoEntityManager
which extends EntityManager
.MongoEntityManager
there is a MongoRepository
with extended Repository
:MongoEntityManager
and MongoRepository
contain lot of useful MongoDB-specific methods:createCursor
createEntityCursor
aggregate
bulkWrite
count
createCollectionIndex
createCollectionIndexes
deleteMany
deleteOne
distinct
dropCollectionIndex
dropCollectionIndexes
findOneAndDelete
findOneAndReplace
findOneAndUpdate
geoHaystackSearch
geoNear
group
collectionIndexes
collectionIndexExists
collectionIndexInformation
initializeOrderedBulkOp
initializeUnorderedBulkOp
insertMany
insertOne
isCapped
listCollectionIndexes
mapReduce
parallelCollectionScan
reIndex
rename
replaceOne
stats
updateMany
updateOne