Book a Demo

Author Topic: Code Generation - Notes  (Read 2095 times)

Marcelo

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Code Generation - Notes
« on: July 20, 2005, 09:55:42 am »
Hi,

Does anyone know how to export a parameter´s note from a class´ operation, when I use the Generate Code(forward engineer) ?

 Thanks,

    Marcelo.
« Last Edit: July 20, 2005, 09:56:34 am by Marcelo »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code Generation - Notes
« Reply #1 on: July 21, 2005, 04:23:24 pm »
It all depends how and where you want them to appear.  Both the JAVADOC_COMMENT and XML_COMMENT macros for an operation include parameter notes in the method note.

You could use one of those.

Alternatively, if you want them there, but in a different format, you can add a new custom template for parameter notes.  Describe how you want it formatted and then list over it in the method notes template.

Finally, if you want it right with the parameter, you can use the paramNotes macro, with some extra formatting to generate it in the Parameter template.

Simon