Author: tchemit Date: 2010-05-09 22:30:29 +0200 (Sun, 09 May 2010) New Revision: 1945 Url: http://nuiton.org/repositories/revision/topia/1945 Log: open Creator api (expose topiacontext) Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Creator.java Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Creator.java =================================================================== --- trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Creator.java 2010-05-09 12:35:08 UTC (rev 1944) +++ trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Creator.java 2010-05-09 20:30:29 UTC (rev 1945) @@ -25,6 +25,7 @@ package org.nuiton.topia.persistence.util; +import org.nuiton.topia.TopiaContext; import org.nuiton.topia.TopiaException; /** @@ -43,13 +44,14 @@ * <p/> * The given <code>from</code> entity should not have already been created in * database ? it should only be here to prepare the creation of the entity. - * + * <p/> * TODO Review this explanation :) * + * @param tx the current available transaction * @param parent the parent of the entity * @param from the entity to create - * @return the really created entity in database + * @return the really created entity in database * @throws TopiaException if any db problem. */ - E create(P parent, E from) throws TopiaException; + E create(TopiaContext tx, P parent, E from) throws TopiaException; }