Index: topia2/src/java/org/codelutin/topia/persistence/hibernate/TopiaDAOHibernate.java diff -u topia2/src/java/org/codelutin/topia/persistence/hibernate/TopiaDAOHibernate.java:1.11 topia2/src/java/org/codelutin/topia/persistence/hibernate/TopiaDAOHibernate.java:1.12 --- topia2/src/java/org/codelutin/topia/persistence/hibernate/TopiaDAOHibernate.java:1.11 Thu Sep 28 15:46:09 2006 +++ topia2/src/java/org/codelutin/topia/persistence/hibernate/TopiaDAOHibernate.java Mon Oct 23 15:01:58 2006 @@ -23,9 +23,9 @@ * * @author poussin * - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * - * Last update: $Date: 2006/09/28 15:46:09 $ by : $Author: ruchaud $ + * Last update: $Date: 2006/10/23 15:01:58 $ by : $Author: ruchaud $ */ package org.codelutin.topia.persistence.hibernate; @@ -74,11 +74,8 @@ * @see org.codelutin.topia.TopiaDAO#update(Entity) */ public Entity update(Entity e) throws TopiaException { - Serializable id = getId(e); - getContext().fireVetoableUpdate(entityClass, id); try { getSession().saveOrUpdate(e); - getContext().fireOnUpdated(entityClass, id, e); return e; } catch (HibernateException eee) { throw new TopiaException(eee); @@ -89,11 +86,9 @@ * @see org.codelutin.topia.TopiaDAO#delete(Entity) */ public void delete(Entity e) throws TopiaException { - Serializable id = getId(e); - getContext().fireVetoableDelete(entityClass, id); try { getSession().delete(e); - getContext().fireOnDeleted(entityClass, id, e); + getContext().getFiresSupport().fireOnEntity(e); } catch (HibernateException eee) { throw new TopiaException(eee); }