[ http://jira.andromda.org/browse/SPRING-116?page=comments#action_12088 ] Inderdeep Dhir commented on SPRING-116: ---------------------------------------
Associated forum topic - http://galaxy.andromda.org/forum/viewtopic.php?t=823 > Add a transform method to the generated DAO to convert associated VO to entity > ------------------------------------------------------------------------------ > > Key: SPRING-116 > URL: http://jira.andromda.org/browse/SPRING-116 > Project: Spring Cartridge > Type: New Feature > Versions: 3.1RC1 > Environment: All > Reporter: Inderdeep Dhir > Assignee: Chad Brandon > > The generated DAO interface contains a method to transform from the entity to > an associated value object. However, there is no method added automatically > for the reverse transformation. > A typical scenario is where the update methods on a webservice receive value > objects from the client and the service method invokes the DAO to persist the > changes. Before invoking the DAO, the method needs to transform the VO's into > entities. > Essentially, an operation like the current transform one for VOs but have it > do the opposite for when you transform VOs to entities. > Suggested name for the new method is toEntityName(EntityVO vo) (e.g. > toCar(CarVO vo)) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf