Hi all, Has anybody else ran into the DaoBase java files not compiling because the create methods generated from the SpringHibernateDaoBase.vsl have a different order to the attributes when overloading? I'm not sure why, and it doesn't always seem consistent.
The list used to call one create method uses a different getter than the list used to construct the second create method, and they appear to be retrieving the attributes in a different order: #set ($attributes = $entity.getAttributes(true,false)) #if (!$attributes.empty) /** * @see ${entity.root.fullyQualifiedDaoName}#create(${entity.getAttributeTypeList(true, false)}) */ public $entity.root.fullyQualifiedEntityName create( #foreach($attribute in $attributes) $attribute.type.fullyQualifiedName $attribute.name#if($velocityCount != $attributes.size()),#else)#end #end { return ($entity.root.fullyQualifiedEntityName)this.create($entity.daoNoTransformationConstantName, ${entity.getAttributeNameList(true,false)}); } /** * @see ${entity.root.fullyQualifiedDaoName}#create(int, ${entity.getAttributeTypeList(true, false)}) */ public Object create( final int transform, #foreach($attribute in $attributes) $attribute.type.fullyQualifiedName $attribute.name#if($velocityCount != $attributes.size()),#else)#end #end ... I'll try some things out to see if I can get it to work locally, but any help would be great. Troy _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3846#3846 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- 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 _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user