Book a Demo

Author Topic: How to generate DDL from data class diagram?  (Read 3741 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
How to generate DDL from data class diagram?
« on: December 01, 2010, 03:02:59 am »
I have setup a data class diagram with a couple of data classes and theier attributes.

When I mark and right click now the package in project browser and select context menu:
Code engineering->Generate DDL

then the dialog window pops up.

Unfortunately NO objects appear in the lower part of this dialog window. So I cannot generate the SQL DDL statements for this diagram.

Whats wrong?

Peter

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: How to generate DDL from data class diagram?
« Reply #1 on: December 03, 2010, 09:24:43 am »
If you haven't transformed the Platform Independent Model to create the DDL Model and thus created <table> stereotyped classes from it then you probably won't see any classes as I think it filters on class and stereotype <table>. Try stereotyping one of the classes with <table> and see what happens.

If that works then suggest following the examples of PIM to PSM in the documentation.

Hope that helps.
Happy to help
:)