User: walterim
Date: 07/07/01 12:12:42
Modified: andromda-ejb3/src/main/resources/templates/ejb3/crud
ManageableServiceRemote.vsl
ManageableServiceBase.vsl
Log:
Support to JSF2 manageable entities.
Revision Changes Path
1.5 +3 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceRemote.vsl
Index: ManageableServiceRemote.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceRemote.vsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -r1.4 -r1.5
--- ManageableServiceRemote.vsl 8 Oct 2006 15:23:57 -0000 1.4
+++ ManageableServiceRemote.vsl 1 Jul 2007 19:12:42 -0000 1.5
@@ -21,6 +21,9 @@
#end
#if ($manageable.read)
+ public $manageable.fullyQualifiedEntityName readById($identifier.type.fullyQualifiedName $identifier.name)
+ throws ${manageable.fullyQualifiedManageableServiceReadExceptionName};
+
public java.util.List read($memberList)
throws ${manageable.fullyQualifiedManageableServiceReadExceptionName};
1.8 +18 -0 cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceBase.vsl
Index: ManageableServiceBase.vsl
===================================================================
RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/resources/templates/ejb3/crud/ManageableServiceBase.vsl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -r1.7 -r1.8
--- ManageableServiceBase.vsl 8 Oct 2006 15:23:57 -0000 1.7
+++ ManageableServiceBase.vsl 1 Jul 2007 19:12:42 -0000 1.8
@@ -157,6 +157,24 @@
#end
#if ($manageable.read)
/**
+ * Entity read operation
+ *
+ * @return $manageable.fullyQualifiedEntityName
+ * @throws $manageable.fullyQualifiedManageableServiceReadExceptionName
+ */
+ public $manageable.fullyQualifiedEntityName readById($identifier.type.fullyQualifiedName $identifier.name)
+ throws ${manageable.fullyQualifiedManageableServiceReadExceptionName}
+ {
+ try{
+ return (${manageable.fullyQualifiedEntityName})emanager.find(${manageable.fullyQualifiedEntityName}.class, ${identifier.name});
+ }
+ catch (Exception ex)
+ {
+ throw new ${manageable.fullyQualifiedManageableServiceReadExceptionName}(ex);
+ }
+ }
+
+ /**
* Read operation
*
* @return java.util.List
|