My model has two entities, Order and OrderItem, in a 1 to many relationship. 
From this model AndroMDA has generated a service called OrderManageableService. 
It has also generated value objects for Order and OrderItem.



Now how do I create a Web Service that uses these entities?



1) I assume I need to model something like an OrderService with <<Service>> and 
<<WebService>> stereotypes. Is this correct?



2) I assume that I implement the methods of this Web Service manually. In this 
implementation do I use OrderManageableService or OrderManageableDao - what is 
the best practice in this layered architecture?



3) In my method parameters and return types, can I use the entities themselve 
or do I have to use value objects?



4) Can I use the value objects that are autogenerated as described above 
(OrderValueObject and OrderItemValueObject)? But if I have to use them in the 
model, then I will have to first create them in the model. Is this the correct 
approach?



5) Why does the autogenerated OrderValueObject not have an array of OrderItems?



Sorry, these are lots of questions but hopefully someone could clear my 
confusion. Thx.
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2912#2912
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to