customization of code generation in MagicDraw?

Suggested improvements and new features.

Moderator: Moderators

customization of code generation in MagicDraw?

Postby Jan Geiger » Fri Nov 29, 2002 11:56 am

Hello,

I have a few questions regarding the code generation facility in MagicDraw.
We're evaluating Magic Draw for usage in a software project using an MDA
approach.

The model shall be UML diagrams (foremost class diagrams) and we want to
put all important information into these diagrams using extension mechanisms
like
stereotypes and tagged values. An example would be a class "Customer" in the
model
having the stereotype <<BusinessObject>> and some attributes like
OID, customerID, name, address and all that stuff. Some of the fields of
such a class
should be marked as persistent or transient for example or be denominated as
object identifier, etc.

Then we want to generate code (OR mapping descriptors and of course Java
Interfaces and classes)
from the UML model considering all the stereotypes and tagged values.

a) Is this possible in Magic Draw?

b) Can the process of code generation be customized to meet our
requirements, e.g. using a template language like Apache Velocity?

In the accompanying documentation I didn't find a hint to a possibility for
such customizations.

Thanx for your help,

Jan Geiger


Jan Geiger
 
Posts Rating:

Re: customization of code generation in MagicDraw?

Postby bpugh@ucentive.net » Fri Jul 12, 2013 3:14 pm

I have the same question, and for the same reasons. How extensible is the code generation and reversing?

Thanks.

Bryan Pugh
bpugh@ucentive.net
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Fri Jul 12, 2013 3:13 pm

Re: customization of code generation in MagicDraw?

Postby saulius_p » Mon Jul 15, 2013 4:16 am

Hello,

You are right MagicDraw Velocity template based report engine can be used for custom code generation. VTL is used for Oracle DDL generation and for custom - extended XML Schemas generation purposes. Report Wizard can be used to generate custom any types of files based on VTL templates.

You can find more at: http://www.nomagic.com/support/documentation.html Reports Generation section
Best regards,
Saulius Pavalkis
User avatar
saulius_p
No Magic
No Magic
 
Posts: 259
Posts Rating:10
Joined: Fri Dec 04, 2009 5:37 am
Full name: Saulius Pavalkis


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest