Book a Demo

Author Topic: Data modeling in EA  (Read 2975 times)

Shreyansh

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Data modeling in EA
« on: January 06, 2009, 07:59:18 pm »
Hi,

I am using EA for designing data base tables. Using EA it is possible to generate DDL scripts of data modal.
I want that some of my tables contain default rows as a master entry. Is it is possible using EA.

Regards,
Shreyansh Doshi


operaman

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Data modeling in EA
« Reply #1 on: January 16, 2009, 07:44:17 am »
Hi Shreyansh,

I'm not certain if I understand your question about 'default rows as a master entry' for tables, however, you can certainly generate a DDL from a Data Model.

Ideally, you will model your classes in a Class Model first (these will eventually become tables in your Data Model package) and then run the 'Transform Current Package' functionality from the Class Model - targeting your Data Model package as the destination for the generated Data Model (typically the generated data model is put in a sub-package called DDL).  

This transformation is commonly called PIM to PSM transformation (Platform Independent Model to Platform Specific Model). Since you are generating a PSM, you should first specify your target DBMS.

Once your Data Model is transformed from your Class model you can right-click on the DDL package (under Data Model package) and select 'Code Engineering -> Generate DDl...' That will generate the DDL statements to do the CREATE / ALTER TABLES and keys and indexes etc, that you can execute in your target DBMS.

You will need to have 'Generate source code and DDL' permission in your version of EA in order to do the DDL generation.

HTH.
« Last Edit: January 16, 2009, 07:57:05 am by operaman »
<a href="http://www.linkedin.com/in/donlarsen" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Don Larsen's prof