Index: topia/src/java/org/codelutin/topia/jdo/AbstractTopiaJDOPersistenceService.java diff -u topia/src/java/org/codelutin/topia/jdo/AbstractTopiaJDOPersistenceService.java:1.4 topia/src/java/org/codelutin/topia/jdo/AbstractTopiaJDOPersistenceService.java:1.5 --- topia/src/java/org/codelutin/topia/jdo/AbstractTopiaJDOPersistenceService.java:1.4 Wed Jun 2 09:33:08 2004 +++ topia/src/java/org/codelutin/topia/jdo/AbstractTopiaJDOPersistenceService.java Wed Jun 2 17:36:46 2004 @@ -23,9 +23,9 @@ * * @author Cédric Pineau * Copyright Code Lutin -* @version $Revision: 1.4 $ +* @version $Revision: 1.5 $ * -* Last update : $Date: 2004/06/02 09:33:08 $ +* Last update : $Date: 2004/06/02 17:36:46 $ * by : $Author: bpoussin $ */ package org.codelutin.topia.jdo; @@ -52,15 +52,6 @@ public abstract class AbstractTopiaJDOPersistenceService extends AbstractTopiaPersistenceService { - /** - * Creates a transient tranferable TopiaEntity. - * - * @return the transient transferable TopiaEntity. - */ - public TopiaEntity create(Class topiaEntityClass) throws TopiaException { - return getContext().getEntity(topiaEntityClass); - } - /** * Make persistent the given TopiaEntity. * This operation returns either a copy or the given TopiaEntity itself (depending on the current context) feeded with a valid topiaId. @@ -79,11 +70,11 @@ try { _to = toTO(toDO(_to)); getContext().getListeners().addCategory(this, _to); - } catch (TopiaException e) { + transaction.commit(); + } catch (TopiaException eee) { transaction.rollback(); - throw (e); + throw eee; } - transaction.commit(); return _to; }