Persist class/entity packages to multiple databases (data sources)
------------------------------------------------------------------

         Key: SPRING-111
         URL: http://jira.andromda.org/browse/SPRING-111
     Project: Spring Cartridge
        Type: New Feature
    Versions: 3.1RC1    
 Environment: Any.
    Reporter: Safaa Hashim
 Assigned to: Chad Brandon 


In real practice an application is partitioned into several business models 
with the very likley potential that few of the different business objects are 
persisted to totally different databases. This is important for business 
reasons (Billing database, application database, transaction logging database, 
business rules databases, multiple business domain databases, to name few).

Currently AndroMDA can only persist to a single database which is defined in 
the project.properties.xml as a datasource.

Potential Solution:

1) allow the definition of multiple data-sources in the project configuration, 
say ds1, ds2, etc.

2) in the model provide a tag say <data-source> to associate a package of 
entity classes with a data-source. The name of teh data-source would be the 
value of the data-source attribute of the tag.

3) In the generated code, generate multiple schema-create.sql and 
schema-drop.sql scripts one for each data-source.

The above is only a conceptual outline of the proposed solution that I can 
think of.

Thanks

Safaa




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Reply via email to