From: Vance K. <va...@us...> - 2006-01-03 01:03:21
|
User: vancek Date: 06/01/02 17:03:14 Modified: andromda-ejb3/src/main/resources/templates/ejb3 Entity.vsl Log: moved getAttributesAsList from utils to session metafacade Revision Changes Path 1.2 +4 -4 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Entity.vsl Index: Entity.vsl =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/Entity.vsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -r1.1 -r1.2 --- Entity.vsl 28 Dec 2005 00:32:55 -0000 1.1 +++ Entity.vsl 3 Jan 2006 01:03:14 -0000 1.2 @@ -86,10 +86,10 @@ * @param $attribute.name Value for the ${attribute.name} property #end */ - public ${entity.entityName}($transform.getAttributesAsList($allAttributes, true, true)) + public ${entity.entityName}($entity.getAttributesAsList($allAttributes, true, true)) { #if(!$inheritedAttributes.empty) - super($transform.getAttributesAsList($inheritedAttributes, false, true)); + super($entity.getAttributesAsList($inheritedAttributes, false, true)); #end #foreach ($attribute in $transform.filterUpdatableAttributes($instanceAttributes)) ${attribute.setterName}(${attribute.name}); @@ -108,10 +108,10 @@ * @param $relation.otherEnd.name Value for the ${relation.otherEnd.name} relation role #* *##end */ - public ${entity.entityName}($transform.getAttributesAsList($allAttributes, true, true)#if(!$allAttributes.empty), #end#foreach ($relation in $relations)#if ($relation.one2Many || $relation.many2Many)${relation.relationType}<${relation.otherEnd.type.name}> $relation.otherEnd.name#else${relation.relationType} $relation.otherEnd.name#end#if($velocityCount != $relations.size()), #end#end) + public ${entity.entityName}($entity.getAttributesAsList($allAttributes, true, true)#if(!$allAttributes.empty), #end#foreach ($relation in $relations)#if ($relation.one2Many || $relation.many2Many)${relation.relationType}<${relation.otherEnd.type.name}> $relation.otherEnd.name#else${relation.relationType} $relation.otherEnd.name#end#if($velocityCount != $relations.size()), #end#end) { // Call suitable class constructor - this($transform.getAttributesAsList($allAttributes, false, true)); + this($entity.getAttributesAsList($allAttributes, false, true)); // Set the CMR relations #* *##foreach ($relation in $relations) |