Index: topia/src/java/org/codelutin/topia/ejb/PersistenceHelperSBBeanDoublonAVirer.java diff -u topia/src/java/org/codelutin/topia/ejb/PersistenceHelperSBBeanDoublonAVirer.java:1.1 topia/src/java/org/codelutin/topia/ejb/PersistenceHelperSBBeanDoublonAVirer.java:1.2 --- topia/src/java/org/codelutin/topia/ejb/PersistenceHelperSBBeanDoublonAVirer.java:1.1 Sat Feb 5 10:47:09 2005 +++ topia/src/java/org/codelutin/topia/ejb/PersistenceHelperSBBeanDoublonAVirer.java Wed Jul 20 12:49:52 2005 @@ -1,5 +1,5 @@ /* *##% - * Copyright (C) 2002, 2003, 2004 + * Copyright (C) 2002, 2003, 2004 * Code Lutin, Cédric Pineau, Benjamin Poussin * * This program is free software; you can redistribute it and/or @@ -23,10 +23,10 @@ * Created: Aug 1, 2004 * * @author Cédric Pineau - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Last update : $Date: 2005/02/05 10:47:09 $ - * by : $Author: pineau $ + * Last update : $Date: 2005/07/20 12:49:52 $ + * by : $Author: bpoussin $ */ package org.codelutin.topia.ejb; @@ -41,17 +41,16 @@ import org.codelutin.topia.TopiaEntity; import org.codelutin.topia.TopiaException; import org.codelutin.topia.TopiaQuery; -import org.codelutin.topia.persistence.AbstractPersistenceHelper; import org.codelutin.topia.persistence.PersistenceHelper; /** - * + * */ public class PersistenceHelperSBBeanDoublonAVirer implements SessionBean { protected SessionContext sessionContext; protected TopiaContext topiaContext; - + public void setSessionContext(SessionContext sessionContext) { this.sessionContext = sessionContext; } @@ -67,7 +66,7 @@ public void ejbActivate() {} public void ejbPassivate() {} - + public TopiaEntity makePersistent(TopiaEntity entity) throws TopiaException { System.out.println("makePersistent PHSB"); // TODO remove this return topiaContext.getPersistenceHelper().makePersistent(entity); @@ -95,7 +94,7 @@ } public TopiaEntity findByTopiaId(String id) throws TopiaException { - return ((AbstractPersistenceHelper) topiaContext.getPersistenceHelper()).findByTopiaId(id); + return topiaContext.getPersistenceHelper().findByTopiaId(id); } }