Index: topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java diff -u topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.19 topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.20 --- topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.19 Mon Sep 26 14:14:18 2005 +++ topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java Fri Oct 14 17:15:00 2005 @@ -23,9 +23,9 @@ * Created: 16 juillet 2005 23:52:35 CEST * * @author Benjamin POUSSIN -* @version $Revision: 1.19 $ +* @version $Revision: 1.20 $ * -* Last update: $Date: 2005/09/26 14:14:18 $ +* Last update: $Date: 2005/10/14 17:15:00 $ * by : $Author: thimel $ */ @@ -365,7 +365,7 @@ String otherField, TopiaEntity entity) throws Exception { TopiaQuery query = assoPS.newQuery() - .where(otherField) + .where(otherField+"=?") .addArg(entity); Collection col = ph.find(query); // Collection col = (Collection)MethodUtils.invokeMethod( @@ -382,7 +382,7 @@ String thisField, String otherField, TopiaEntity entity) throws Exception { - TopiaQuery query = assoPS.newQuery() + TopiaQuery query = assoPS.newQuery() .select(thisField) .where(otherField+"=?") .addArg(entity); @@ -583,7 +583,7 @@ assoPS, thisField, otherField, entity, (TopiaEntity)args[0]); return null; - } else if(methodName.startsWith("clean")){ + } else if(methodName.startsWith("clear")){ clearFieldAssociationCardinalityN( assoPS, thisField, otherField, entity); return null;