Hi

In our search for the response to the ValueObject mistery, we have found what's the problem.
We have 2 MagicDraw project files (.xml), the entities are defined in one, and services and valueobjects in the other one. And the ValueObjects have attributes that are Entities.
And a little bit more complex, there are three class diagrams in the entities project file. Depending in the order of the models files (.uri.0 and .uri.1) ValueObjects are generated or no.
The entities has to go first. And it can't be crossreferences between the model files.
So, we managed to get generated the VO that have references (attribute types) to the first diagram in previous model files, but not those that have reference to entities in other diagrams besides the first one.


Keep on searching a workaround...
Thanks

Jordi
--


*Jordi Torné***

Application Integration & Management**

_http://www.getronics.com <http://www.getronics.com/>_

/The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material./

/Thank you.///

*/
/*



Jordi Torné escribió:

Hi

We're starting to use andromda for a quite large project and have run into some problems.
We're using andromda 3.0M3, with the java, hibernate and bpm4struts cartridge.
The worst problem we've is related to the java cartridge not seen classes with the <<ValueObject>> stereotype. For instance, we've a diagram with classes with <<Entity>>, <<Service>>, <<Exception>> and <<ValueObject>> stereotypes. Java files for Entities and Services are created by the Hibernate cartridge, and java files for the Exceptions are created by the Java cartridge, however no cartridge generates java for ValueObject stereotypes.
In one case (we've several projects), the andromda-java.log indicates the ValueObject stereotypes where found, but nothing is generated (in fact, we manage to generate them using the webservice cartridge)
and in another case, the andromda-java.log indicates that the cartridge does not found any ValueObject stereotypes (in this case, we don't use webservices). In all the cases, the java-cartridge is generating code from Exception stereotypes. We have tried using the "<value-objects/>" property with no success.


Diagrams are created using MagicDraw 8.0, saved as XML (XMI 1.2). The metafacade is uml-1.4 (besides the hibernate, webservice and bpm4struts metafacades)

Is there any reason (property, conflict or bug) that can explain this behaviour?
Thanks in advance for your responses.


Jordi



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to