-
Notifications
You must be signed in to change notification settings - Fork 299
Archetype 3.0.0 removed DB resources configuration #686
Description
Given a project wanting to implement e.g. against an oracle DB, someone would choose oracle as the database type during archetype generation.
Now having the demand of letting developers to develop with h2 as long as possible, while providing the ability to switch to an oracle instance as well you would like to have the database-configuration for both. In oasp4j 2.4.x you got multiple confgurations generated, which
https://github.com/oasp/oasp4j/wiki/guide-configuration#database-configuration or
https://github.com/oasp-forge/oasp4j-wiki/wiki/guide-configuration#database-configuration
is referring to. Anyhow, this is not valid anymore, so the documentation should be adapted showing how to achieve multiple datasources (replaceable or even in parallel).
Sidemark: All DB scripts are generated by the archetype no matter which database type is specified. This does not fit to the opt-in approach for the database configuration, which has again to be done completely on your own.
Probosal: Keep configurable datasource based on a spring profile to give an idea of how to add additional database easily. Always keep h2 DB scripts and configuration if the choice is any other database like oracle,mysql,...