Code for the post MongoDB sequences (autoincrement) - The Java Way.
A simple code to create sequence-like feature in MongoDB. Repository contains:
Sequence
record (mapped to document in MongoDB collection),- ready to use
SequenceDAO
, - some fancy tests in
SequenceDaoTest
using TestContainers
To run tests, due to usage of TestContainers, Docker is required.