To configure an ECO Space using the designer

  1. Select the UML packages containing the classes that you want to be persistent.
  2. Choose a persistence method, either an RDBMS, or XML file. Here you will add the required persistence components to the ECO Space, and then configure the ECO Space to use the chosen persistence method by setting properties in the Object Inspector.
  3. Validate the Model. This will cause the IDE to perform a number of checks to make sure the model is well-formed. For example, OCL expressions are checked to make sure they are valid.
  4. If you are using an RDBMS, create an empty database. The exact procedure will vary depending on your database vendor. This procedure will use an Interbase database as an example.
  5. Add a connection handle component to the ECO Space and configure its connection string.
  6. If you are using an RDBMS and you are starting from scratch, create the initial database schema by clicking on the Create Database Schema button. Otherwise, if you have made changes to the model, or you want to add or remove a UML package, you can use the Evolve Db button to update the existing database schema.

Note: When a class or attribute is deleted and the database schema evolved, the corresponding columns are removed from the database and the data is lost. The IDE will warn you if this is the case, giving you a chance to cancel the operation.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment