This demo app is designed to be able to switch between a MongoDB persistence layer and a SQL persistence layer. The database engine is determined automatically by the datasource configured in application.properties:
- If spring.data.mongodb.database is present in application.properties then we're dealing with a MongoDB engine
- Else if spring.datasource.url is present then we're dealing with a SQL engine.
TODOs:
- Currently the app is stoppping imediatelly after starting even with the Scheduled component being implemented
- It seems like no repositories are being registered (but maybe they don't have time to be registerered)
- Application starts correctly on Mongo DB
- Application starts correctly on SQL
- Write integration tests that save data in the repository
- Write code that performs db operations on startup to demo usability
Resources: