Book a Demo

Author Topic: Code Generation : Generating file pairs  (Read 2882 times)

doctor_uv

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Code Generation : Generating file pairs
« on: June 15, 2007, 07:02:31 am »
I am working on generating a file pair for a website out of EA for a generic CRUD application from a domain model.
I created an ASP.NET language which works fine. :-)

However, there seem to be no way to trigger the generation of the XXXXImpl Macro tree. :-(

I worked around by replacing the C++ code generation with my asp.net and code behind class which works but feels odd.

Any suggestion how to do this better?

I found a few odd ends with the code generation by now.
this issue seems to point in the same direction as the missing option to specify a file suffix for a code language..... (another post I found in this forum)

I am already using a number of transformations generating parallel and almost identical trees in the UML using only different setting for the code language.

However, this explodes the UML model unnecessarily. We need a better support for generating different languages from the same package. This seems to be the better approach for a number of applications
(e.g.
asp.net + code behind class
entities + hibernate mappings + dto classes
)
Dr. UV
Software Architect
Alcatel-Lucent IPTV

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation : Generating file pairs
« Reply #1 on: June 17, 2007, 01:03:28 pm »
Filenames (including implementation files) can be specified in EA 7.0 using CodeOptions in an MDG technology.  See http://www.sparxsystems.com.au/EAUserGuide/index.html?addingcodemodulesinmdgtec.htm.