From: <cwb...@us...> - 2009-07-09 19:41:21
|
Revision: 12950 http://andromda.svn.sourceforge.net/andromda/?rev=12950&view=rev Author: cwbrandon Date: 2009-07-09 19:41:11 +0000 (Thu, 09 Jul 2009) Log Message: ----------- exclude static attributes from required check Modified Paths: -------------- trunk/cartridges/andromda-spring/src/templates/spring/SpringServiceBase.vsl Modified: trunk/cartridges/andromda-spring/src/templates/spring/SpringServiceBase.vsl =================================================================== --- trunk/cartridges/andromda-spring/src/templates/spring/SpringServiceBase.vsl 2009-07-08 05:06:52 UTC (rev 12949) +++ trunk/cartridges/andromda-spring/src/templates/spring/SpringServiceBase.vsl 2009-07-09 19:41:11 UTC (rev 12950) @@ -117,7 +117,7 @@ { #if ($requiredCheckEnabled) #foreach ($argument in $operation.arguments) -#if ($argument.required && !$argument.type.primitive) +#if ($argument.required && !$argument.type.primitive && !$attribute.static) #if (!$argument.type.stringType) if ($argument.name == null) { @@ -133,7 +133,7 @@ #end #if (!$argument.type.enumeration && !$argument.type.entityMetaType) #foreach ($attribute in $argument.type.getAttributes(true)) -#if ($attribute.required && !$attribute.type.primitive) +#if ($attribute.required && !$attribute.type.primitive && !$attribute.static) #if (!$attribute.type.stringType) if (${argument.name}.get${stringUtils.capitalize($attribute.name)}() == null) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |