Book a Demo

Author Topic: Modelling a java  annotation / code generation  (Read 2540 times)

Cedric Boutelier

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Modelling a java  annotation / code generation
« on: September 03, 2010, 07:26:59 pm »
Hi,

I am trying to find out how to model a custom annotation in a class diagram. I can set a stereotype on the class, but a class will still be generated not an annotation (@interface instead of class).
Is there a generic way to achieve this, or should I rely on a modified code generation template? I am pretty sure that someone may have already worked on the matter.
Any help would be greatly appreciated.

Cedric Boutelier

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Modelling a java  annotation / code generation
« Reply #1 on: September 03, 2010, 07:38:07 pm »
Ok, I have found it.

The object must be an Interface, stereotype must be annotation.
My mistake was to add a 's' at the end of annotation.

Hope this will help others.