Index: topia2/src/java/org/codelutin/topia/generator/ServiceAbstractGenerator.java diff -u topia2/src/java/org/codelutin/topia/generator/ServiceAbstractGenerator.java:1.2 topia2/src/java/org/codelutin/topia/generator/ServiceAbstractGenerator.java:1.3 --- topia2/src/java/org/codelutin/topia/generator/ServiceAbstractGenerator.java:1.2 Tue Jun 19 16:07:52 2007 +++ topia2/src/java/org/codelutin/topia/generator/ServiceAbstractGenerator.java Wed Jun 27 09:53:22 2007 @@ -46,7 +46,7 @@ * Created: 19 juin 2007 * * @author dupont -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * * Le service abstrait etend TopiaApplicationServiceAbstract et implement * l'interface du service. @@ -56,7 +56,7 @@ * @see ServiceInterfaceGenerator * @see TopiaApplicationServiceAbstract * -* Mise a jour: $Date: 2007/06/19 16:07:52 $ +* Mise a jour: $Date: 2007/06/27 09:53:22 $ * par : $Author: ndupont $ */ public class ServiceAbstractGenerator extends ObjectModelGenerator { @@ -84,7 +84,7 @@ generateInterfaceHeader(output, interfacez); - // generateInterfaceOperations(output, interfacez); + generateInterfaceOperations(output, interfacez); // générer les méthodes étendues en modifiant les signatures pour éviter les doublons (findAllByAdresse héritée de Person et Employee) generateInheritedInterfaceOperations(output, interfacez); @@ -128,13 +128,16 @@ } /*{ -public class <%=classifier.getName()+"Abstract"%> extends TopiaApplicationServiceAbstract implements <%=classifier.getName()%>{ }*/ +public abstract class <%=classifier.getName()+"Abstract"%> extends TopiaApplicationServiceAbstract implements <%=classifier.getName()%>{ }*/ } private void generateInterfaceOperations(Writer output, ObjectModelClassifier classifier) throws IOException { for (Iterator it = classifier.getOperations().iterator(); it.hasNext();) { ObjectModelOperation op = (ObjectModelOperation)it.next(); -/*{ /** +/*{ + + /** + * Implementation a la charge du developpeur }*/ if (GeneratorUtil.hasDocumentation(op)) { /*{ * <%=op.getName()%> : <%=op.getDocumentation()%> @@ -147,7 +150,7 @@ }*/ } /*{ *) - <%=op.getVisibility()%> <%=op.getReturnType()%> <%=op.getName()%>(}*/ + <%=op.getVisibility()%> abstract <%=op.getReturnType()%> <%=op.getName()%>(}*/ String vir = ""; for(ObjectModelParameter param : params){ if(log.isTraceEnabled()) {log.trace("Param" + param + " vir" + vir);} @@ -251,7 +254,7 @@ * @param v la valeur que doit avoir <%=attr.getName()%> * @return une liste *) - public List<<%=clazz.getQualifiedName()%>> findAll<%=clazz.getName()%>By<%=GeneratorUtil.capitalize(attr.getName())%>(<%=attr.getType()%> v) throws TopiaException{ + public List<<%=clazz.getQualifiedName()%>> findAll<%=clazz.getName()%>By<%=GeneratorUtil.capitalize(attr.getName())%>(<%=attr.getType()%> v) throws TopiaException{ TopiaContextImplementor usedContextImpl = (TopiaContextImplementor) topiaContext; <%=clazz.getName()%>DAOAbstract dao = (<%=clazz.getName()%>DAOAbstract)usedContextImpl.getDAO(<%=clazz.getName()%>.class); List<<%=clazz.getName()%>> entityList = dao.findAllBy<%=GeneratorUtil.capitalize(attr.getName())%>(v);