Domain Model Synchronization: Importing the Database

Domain Modeling with WebRatio Mobile Platform
265 views Published on Mar 31, 2015 | Time 2 min
Applies to: 8.0 or higher

If you are working on a back-end project, once you defined your data structure in the Domain Model, you need to connect it with a persistent database. Using the Domain Model synchronization process, you can extract the Domain Model elements starting from an existing database structure. The imported elements (tables, columns and relationships in the database) will be converted in the corresponding Domain Model's item: Classes, Attributes and Associations. In this lesson you learn how to use the synchronization process in WebRatio Mobile Platform, in order to import a relational database in the Domain Model.

Transcript

Table of contents

Reverse Engineering

In this lesson we will see, in detail, how the Forward Engineering process works. Let's refer to our "CRM" dataservice project and let’s suppose that the CRM database contains the "Purchases" table and you want to import it in the "CRM" project.

Right-click on the database node in the Outline View and select the "Synchronize" option. In the "Database Synchronizer" dialog, expand the "Classes" node.

As you can notice, the elements to import are marked with a blue left arrow. Right-click on the "Purchase" class item and select the "Import into Model" option. Press the "Next" button, then press the "Finish" button to complete the procedure.

Once the process is successfully completed, you can find the "Purchase" class in your Domain Model.