Index: topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java diff -u topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.3 topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.4 --- topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java:1.3 Thu Sep 16 15:55:03 2004 +++ topia/src/java/org/codelutin/topia/persistence/LazyEntityGenerator.java Sat Feb 5 10:47:09 2005 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * - * Mise a jour: $Date: 2004/09/16 15:55:03 $ - * par : $Author: mazelier $ + * Mise a jour: $Date: 2005/02/05 10:47:09 $ + * par : $Author: pineau $ */ package org.codelutin.topia.persistence; @@ -256,6 +256,35 @@ public Class getEntityClass(){ return <%=clazzifier.getName()%>.class; } + + /** + * Return a String representation of this entity + *) + public String toString(){ + return <%=getProperty("defaultPackage")%>.<%=model.getName()%>EntitiesHelper.toString(this); + } + + /** + * Return an XML representation of this entity + *) + public String toXML(){ + return <%=getProperty("defaultPackage")%>.<%=model.getName()%>EntitiesHelper.toXML(this); + } + +}*/ + if(clazzifier instanceof ObjectModelClass){ + ObjectModelClass clazz = (ObjectModelClass)clazzifier; +/*{ + /** + * Return the model class for this entity as an entry point in the project entities model + *) + public ObjectModelClass getModelElement() { + return null; // TODO + } + +}*/ + } +/*{ /** * Retourne le persistenceService associé à cette entite.