Index: topia2/src/java/org/codelutin/topia/generator/EntityInterfaceGenerator.java diff -u topia2/src/java/org/codelutin/topia/generator/EntityInterfaceGenerator.java:1.11 topia2/src/java/org/codelutin/topia/generator/EntityInterfaceGenerator.java:1.12 --- topia2/src/java/org/codelutin/topia/generator/EntityInterfaceGenerator.java:1.11 Fri May 5 08:05:38 2006 +++ topia2/src/java/org/codelutin/topia/generator/EntityInterfaceGenerator.java Tue Jun 6 15:31:33 2006 @@ -24,9 +24,9 @@ * Created: 12 déc. 2005 * * @author Arnaud Thimel -* @version $Revision: 1.11 $ +* @version $Revision: 1.12 $ * -* Mise a jour: $Date: 2006/05/05 08:05:38 $ +* Mise a jour: $Date: 2006/06/06 15:31:33 $ * par : $Author: thimel $ */ @@ -84,7 +84,6 @@ if (!interfacez.hasStereotype(GeneratorUtil.STEREOTYPE_ENTITY)) { return; } -// System.err.println("!!!!!!!! Generating interface for " + interfacez.getQualifiedName() + " in " + getFilenameForClassifier()); generateInterfaceHeader(output, interfacez); generateInterfaceOperations(output, interfacez); Index: topia2/src/java/org/codelutin/topia/generator/EntityHibernateMappingGenerator.java diff -u topia2/src/java/org/codelutin/topia/generator/EntityHibernateMappingGenerator.java:1.22 topia2/src/java/org/codelutin/topia/generator/EntityHibernateMappingGenerator.java:1.23 --- topia2/src/java/org/codelutin/topia/generator/EntityHibernateMappingGenerator.java:1.22 Wed May 10 13:38:32 2006 +++ topia2/src/java/org/codelutin/topia/generator/EntityHibernateMappingGenerator.java Tue Jun 6 15:31:33 2006 @@ -24,9 +24,9 @@ * Created: 12 déc. 2005 * * @author Arnaud Thimel -* @version $Revision: 1.22 $ +* @version $Revision: 1.23 $ * -* Mise a jour: $Date: 2006/05/10 13:38:32 $ +* Mise a jour: $Date: 2006/06/06 15:31:33 $ * par : $Author: thimel $ */ @@ -97,10 +97,26 @@ ObjectModelClass superClass = (ObjectModelClass)clazz.getSuperclasses().iterator().next(); String superClassname = superClass.getQualifiedName(); if (log.isDebugEnabled()) {log.debug("superClass for " + clazz.getQualifiedName() + " is " + superClassname);} -/*{ "> +/*{ " }*/ + //On précise au proxy de quelle interface hérite l'objet +/*{proxy="<%=clazz.getQualifiedName()%>" }*/ +/*{> + }*/ } else { -/*{ "> +/*{ " }*/ + //On précise au proxy de quelle interface hérite l'objet +/*{proxy="<%=clazz.getQualifiedName()%>" }*/ +/*{> @@ -108,7 +124,7 @@ }*/ } - + for (Iterator it = clazz.getAttributes().iterator(); it.hasNext(); ) { ObjectModelAttribute attr = (ObjectModelAttribute)it.next(); ObjectModelAttribute reverse = attr.getReverseAttribute();