We split our baseline (for the simultaneous development of versions 1.0 and 2.0). Instead of supporting two separate databases (and hardware), we are exploring other alternatives. We would like to be able to use the same database instance and have duplicate copies of tables / data in two different schemes:
1.0: SCHEMA_1
2.0: SCHEMA_2
The JPA orm.xml file has a property that specifies the schema:
<schema>SCHEMA_1</schema>
My question is whether it is possible to enter a property instead of a hard coded schema name (and how).
For example, if we have a .properties file with the following:
schema.name=SCHEMA_1
Can we then use schema.name in the orm.xml file as follows:
<SCHEMA>schema.name</SCHEMA>
Thanks for any help! Other alternatives for creating a dynamic circuit are also welcome.