I’d like to write my custom templates for instant generator. Code generation would be customized using stereotypes and tagged values of generated elements. But I can’t find possibility to retrieve tagged values and stereotypes.
I’m not sure, if my idea conforms to Your strategy. Are code generation templates the way for users to create code that fits better to their needs, or are they only Your internal design solution?
How are you? I am glad to inform you that Service Pack 1 is released. With Service Pack 1 you can retrieve stereotypes and tagged values using template. These are the available methods:
I tried these features yesterday evening. They are really nice. Underscores in stereotype names confused me a little bit, but only for the moment.
Possibility to generate names following MS naming conventions is nice too.
I am glad to know that the fix works. However, I do not quite understand your suggestion about the underscores in stereotypes. Could you provide me with more detail. By clarifying your need, I will discuss with our engineers.
Hello,
If a particular class has the ORM Persistable stereotype, I have to call hasStereotype(“ORM_Persistable”) to examine it. It’s not a problem, since I discovered, than I should replace spaces with underscores.