From: Vance K. <va...@us...> - 2006-01-31 15:16:09
|
User: vancek Date: 06/01/31 07:16:00 Modified: andromda-ejb3/src/main/resources/templates/ejb3 Entity.vsl Log: entity methods throw UnsupportedOperationException when method is not implemented Revision Changes Path 1.12 +4 -3 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.11 retrieving revision 1.12 diff -u -w -r1.11 -r1.12 --- Entity.vsl 29 Jan 2006 03:19:56 -0000 1.11 +++ Entity.vsl 31 Jan 2006 15:15:58 -0000 1.12 @@ -99,16 +99,15 @@ #set ($operations = $entity.businessOperations) #if (!$operations.empty) - // --------------- Business Methods ----------------- + // ------------------ Methods -------------------- #**##foreach ($operation in $operations) #* *##set ($signature = $operation.signature) -#* *##set ($interfaceType = "interface") #* *##set ($visibility = $operation.visibility.toString()) +#* *##set ($returnType = $operation.returnType.fullyQualifiedName) /** $operation.getDocumentation(" * ") */ -#* *##set ($returnType = $operation.returnType.fullyQualifiedName) #* *##if ($operation.exceptionsPresent) $visibility $returnType $signature throws $operation.exceptionList @@ -124,6 +123,8 @@ // TODO put your implementation here. #* *##if ($operation.returnTypePresent) return $operation.returnType.javaNullString; +#* *##else + throw new java.lang.UnsupportedOperationException("${entity.fullyQualifiedName}.${operation.signature} Not implemented!"); #* *##end } #* *##end |