yeah I wondered about that too, you're right as it will potentially try to 
persist the collection



since the method converts inline you'll need to do this instead (calling the 
new collection yourself) :





List anotherList = new ArrayList(entity.getSubEntities());

getSubEntityDAO().toSubEntityVOCollection(anotherList)





that way you aren't touching the entity's association



I see you point though, you're saying that the added value of doing the 
conversion inline does not outweigh the ease of programming, since it's a bit 
counter intuitive



I have no preference personally, I guess we could always have another method 
that returns a new collection, file an issue in JIRA if you'ld like to see that
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1893#1893
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