Hi Kengkaj/Ronald,
This is further extension of the question on annotations and streotypes.
How about annotations that are attached to methods? For example: I need to specify two annotations @TransactionAttribute(REQUIRES_NEW) and @RolesAllowed("Onlyme") for one of my methods.
Sequence Diagram:
I had specified the two attributes as notes in the sequence diagram. Is this ok or is it better to specify these attributes with stereotypes such as
<<TX: REQUIRES_NEW>>
and
<<ROLES: Onlyme>>
Class Diagram:
Do I specify the method in the Class diagram as
+ somemethod() : void {TX: REQUIRES_NEW; ROLES: Onlyme}
What do you think?
Thanks,
Amar.