Is there a way to mimic the @GeneratedValue in MongoRepository?
I would like to auto increment the _id
Not reliably, particularly since MongoDB doesn't support transactions. The recommended approach is to use a MongoDB ObjectID.
ObjectID
Not reliably, particularly since MongoDB doesn't support transactions. The recommended approach is to use a MongoDB
ObjectID
.