Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceGenerator.java:1.8 topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceGenerator.java:1.9 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceGenerator.java:1.8 Fri May 20 17:51:10 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceGenerator.java Thu May 26 14:19:28 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * - * Mise a jour: $Date: 2005/05/20 17:51:10 $ + * Mise a jour: $Date: 2005/05/26 14:19:28 $ * par : $Author: thimel $ */ @@ -143,7 +143,7 @@ if (it.hasNext()) out = ((ObjectModelClass)it.next()).getName(); /*{ - public <%=out%> fromXML(String entityXML) throws TopiaException; +// public <%=clazz.getName()%> fromXML(String entityXML) throws TopiaException; }*/ } Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceImplGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceImplGenerator.java:1.7 topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceImplGenerator.java:1.8 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceImplGenerator.java:1.7 Fri May 20 17:51:10 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityPersistenceServiceImplGenerator.java Thu May 26 14:19:28 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * - * Mise a jour: $Date: 2005/05/20 17:51:10 $ + * Mise a jour: $Date: 2005/05/26 14:19:28 $ * par : $Author: thimel $ */ @@ -133,10 +133,12 @@ if(clazzifier instanceof ObjectModelClass){ ObjectModelClass clazz = (ObjectModelClass)clazzifier; /*{ - + /** + * Return the <%=clazz.getName()%> entity having the given topiaId + *) public <%=clazz.getName()%> find<%=clazz.getName()%>By_TopiaId_(String topiaId) throws TopiaException { - // TODO Arno : Tester le topiaId avant de faire le find !!! - return (<%=clazz.getName()%>)getAppContext().getPersistenceHelper().findByTopiaId(topiaId); +}*/ // TODO Arno : Tester le topiaId avant de faire le find !!! +/*{ return (<%=clazz.getName()%>)getAppContext().getPersistenceHelper().findByTopiaId(topiaId); } /** @@ -209,14 +211,14 @@ if (it.hasNext()) out = ((ObjectModelClass)it.next()).getName(); /*{ - public <%=out%> fromXML(String entityXML) throws TopiaException { +/* public <%=clazz.getName()%> fromXML(String entityXML) throws TopiaException { TopiaEntity entity =(<%=clazz.getName()%>) <%=getProperty("defaultPackage")%>.<%=model.getName()%>EntitiesHelper.fromXML(entityXML); if (! (entity instanceof <%=clazz.getName()%>)) { throw new TopiaException("Wrong persistence service. You should use the entity related persistence service"); } return (<%=clazz.getName()%>) entity; } - +*) }*/ } else { ObjectModelInterface interfacz = (ObjectModelInterface)clazzifier;