[EMAIL PROTECTED] wrote: you will be able to do that, having the <<ValueObject>> stereotype is fine, it's just not mandatory
just consider the case where you want to pass an object that is not a value object .. it still has a few attributes but you don't want a value object generated for it, well this will also be supported by not making the stereotype mandatory I don't see why the stereotype must be there if we have enough with the class attributes (end of quote) Making VO stereotype mandatory is not what I mean. I wanted to say that it seems to me that such pattern: using VOs as all-round-data-transport objects seems reasonable. I am modelling all types returned by <<service>> class'es methods as VOs even if they are not connected directly with any entity (I am not using automated transforms on those VOs). Thanks to this I have bean getters/setters generated by AndroMDA on VO objects like ClientAdminViewDto, containing all data required to show some client administering web page: - table with data - navigational info (currentPageNo, pageCount - for pagination made manually) - some collections with data required by selects on some "add client" form etc. I think that something like this would be great: 1. have some ClientInfoViewDto class containing: + clientInfo : ClientBaseDto + clientCompany : CompanyBaseDto + clientRoles : ClientRoleDto[] 2. have <<service>> method getClientInfoView() 3. model ClientInfoEditFrom as inheriting from ClientBaseDto. Define form-specific data on that ClientInfoEditForm 4. within controller method preparing data for clientInfoPage: get ClientInfoViewDto form = new clientInfoEditForm(clientInfoView.getClientInfo()); and have it working as I suppose is clear it should ;-) _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2844#2844 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