Hy, As I know, there are some troubles with java generation : - no behavior diagrams are taken in account, there is something with state machine diagram but this is not what could be expected
- It is hard to use JDK or JEE classes because JDK and JEE UML models are not published, then if you use an ArrayList or a bundle in your model, that will not be the JDK classes but your classes - or if you write java code with ArrayList, "UML from java" will generate a data type called ArrayList but a data type is not a class ... - "Normally" it should be possible to generate yourself the JDK or JEE models but when I tried it bugs - In previous version, due to some bugs, it was not possible to create a model, generate java code, modify the code and generate an updated model - Theorically, thanks to acceleo engine, you can customize java generation but this is not an easy way - Anyway you will have to define the mapping between UML elements and Java code, especially for behavior diagrams. For classes diagram, the mapping is obvious except for final keyword and annotations. In UML, I do not know how to design a final attribute or an annotation. Cordialement, Bernard Granier CE Plateforme Système [email protected] 01 58 11 32 51 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Topcased user list where issues are discussed Sent: Tuesday, November 08, 2011 12:35 PM To: [email protected] Subject: [Topcased-users] UML to Java code generation help Hello, I'm a M.Sc student at the Faculty of Organizational Sciences, Software Engineering department in Belgrade, Serbia and a first time user of Topcased (v 5.0). As part of my final paper I am doing a project that involves UML to Java code generation. I've attached a screen of the data model I am working with. So far I have created that data model in Topcased, along with a UseCase diagram, including a sequence diagram for each case defined in the UseCase diagram. The properties of elements of each sequence diagram have been set (Represents, Operation, etc.) and the model has been validated without errors. Based on such a model I have successfully generated what seem to be POJO classes that match classes defined in the data model with appropriate attributes and get/set methods as well as skeleton code for the operations defined in the data model (add, edit or delete). I am interested to know if this is the extent of Topcased's code generation capability, or can it generate a more complete Java application based on a UML model? If it can, I would appreciate a link to a tutorial, or another form of documentation that explains the procedure, since I haven't been able to find one by myself. Thanks in advance to any help and clarification you can give me. Best regards, Igor Ćirović # " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés." ****** " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
