Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToContextPropertiesGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToContextPropertiesGenerator.java:1.8 topia/src/java/org/codelutin/topia/generators/ObjectModelToContextPropertiesGenerator.java:1.9 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToContextPropertiesGenerator.java:1.8 Fri May 20 17:51:10 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToContextPropertiesGenerator.java Wed Jun 15 15:14:54 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/06/15 15:14:54 $ * par : $Author: thimel $ */ @@ -59,8 +59,11 @@ public void generateFromModel(Writer output, ObjectModel model) throws IOException { /*{ context.class=<%=getProperty("defaultPackage")%>.<%=model.getName()%>Context -context.helper.persistence=org.codelutin.topia.persistence.jdo.JDOPersistenceHelper -context.helper.persistence.properties.file=<%=model.getName()%>JDOPersistenceHelper.properties +org.codelutin.topia.persistence.serialization.SerializablePersistenceHelper +context.helper.persistence=org.codelutin.topia.persistence.serialization.SerializablePersistenceHelper +#context.helper.persistence.properties.file=<%=model.getName()%>SerializablePersistenceHelper.properties +#context.helper.persistence=org.codelutin.topia.persistence.jdo.JDOPersistenceHelper +#context.helper.persistence.properties.file=<%=model.getName()%>JDOPersistenceHelper.properties context.helper.distribution=org.codelutin.topia.distribution.LocalDistributionHelper context.helper.hook=org.codelutin.topia.hook.DefaultHookHelper Index: topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.15 topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.16 --- topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java:1.15 Tue Jun 14 17:03:10 2005 +++ topia/src/java/org/codelutin/topia/generators/ObjectModelToEntityImplGenerator.java Wed Jun 15 15:14:54 2005 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.15 $ + * @version $Revision: 1.16 $ * - * Mise a jour: $Date: 2005/06/14 17:03:10 $ + * Mise a jour: $Date: 2005/06/15 15:14:54 $ * par : $Author: thimel $ */ @@ -335,18 +335,6 @@ add_dependentEntities_(value); }*/ } - if (attribute.getReverseAttribute() != null) - if(Util.isNMultiplicity(attribute.getReverseAttribute())) { -/*{ this.<%=attribute.getName()%>.remove<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(this); - if (!value.containsIn<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(this)) - value.add<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(this); -}*/ - } else { -/*{ this.<%=attribute.getName()%>.set<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(null); - if (!this.equals(value.get<%=Util.capitalize(attribute.getReverseAttribute().getName())%>())) - value.set<%=Util.capitalize(attribute.getReverseAttribute().getName())%>(this); -}*/ - } /*{ this.<%=attribute.getName()%> = value; this._<%=attribute.getName()%>Modified_ = true; }