Index: topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java diff -u topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.14 topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.15 --- topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java:1.14 Fri Sep 16 14:12:07 2005 +++ topia/src/java/org/codelutin/topia/persistence/TopiaPersistenceProxy.java Fri Sep 16 15:52:14 2005 @@ -23,9 +23,9 @@ * Created: 16 juillet 2005 23:52:35 CEST * * @author Benjamin POUSSIN -* @version $Revision: 1.14 $ +* @version $Revision: 1.15 $ * -* Last update: $Date: 2005/09/16 14:12:07 $ +* Last update: $Date: 2005/09/16 15:52:14 $ * by : $Author: thimel $ */ @@ -224,11 +224,6 @@ //On veut faire un entity.setXXX(value) // if(assoPS.getEntityClass() != entity.getEntityClass()){ // recuperation de l'objet a modifier s'il existe - if (thisIsA) { - otherField = "_attribute_A_"; - } else { - otherField = "_attribute_B_"; - } TopiaQuery query = assoPS.newQuery() .where(otherField+"=?") .addArg(entity); @@ -482,7 +477,7 @@ return toString(entity, method); }else if(methodName.equals("hashCode") && method.getParameterTypes().length == 0){ - return entity.get_topiaId_().hashCode(); + return getObject().getManagement().getId().hashCode(); } else if(methodName.equals("equals") && method.getParameterTypes().length == 1){ return equals(entity, method, args[0]);