'Javers Mongo collections are not initialized on startup
I am using Javers 6.5.3 with MongoDB with transactions. When I am trying to commit changes in Javers I have got an error:
Cannot create namespace jv_snapshots in multi-document transaction
To fix it I have to manually create jv_snapshots and jv_head_id collections in my database, but I am loosing all the indexes and stuff from Javers MongoSchemaManager
I was trying to add @EnableMongoRepositories({"org.javers.spring.repository"}) in config file as shown in documentation but it does not work.
How to force Javers to create collections on start up?
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
