Index: topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java diff -u topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.2 topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.3 --- topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.2 Fri Aug 6 17:48:52 2004 +++ topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java Thu Sep 16 15:55:03 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * - * Mise a jour: $Date: 2004/08/06 17:48:52 $ - * par : $Author: bpoussin $ + * Mise a jour: $Date: 2004/09/16 15:55:03 $ + * par : $Author: mazelier $ */ package org.codelutin.topia.persistence; @@ -179,6 +179,14 @@ public void clear<%=Util.capitalize(attribute.getName())%>() throws TopiaException { getTypedEntity().clear<%=Util.capitalize(attribute.getName())%>(); } + + public void add<%=Util.capitalize(attribute.getName())%>(<%=Util.getAttributeType(attribute)%> list) throws TopiaException{ + getTypedEntity().add<%=Util.capitalize(attribute.getName())%>(list); + } + + public void add<%=Util.capitalize(attribute.getName())%>(<%=Util.getAttributeType(attribute)%> list, boolean duplicate) throws TopiaException{ + getTypedEntity().add<%=Util.capitalize(attribute.getName())%>(list, duplicate); + } }*/ } @@ -207,6 +215,21 @@ } public void generateInterfaceOperationBody(Writer output, ObjectModelOperation operation) throws IOException { generateOperationBody(output, operation); + } + + ////////////////////////////////////////////////////////////////////// + // REMOVE ENTITY DECLARATION + ////////////////////////////////////////////////////////////////////// + public void generateRemoveEntity(Writer output, ObjectModelClassifier clazz) + throws IOException { +/*{ + /** + * Delete this entity with its persistenceService + *) + public void remove() throws TopiaException{ + getTypedEntity().remove(); + } +}*/ } //////////////////////////////////////////////////////////////////////