On Mon, Oct 4, 2010 at 2:01 PM, Rickard Öberg <[email protected]> wrote:

> Sounds good to me, +1. You have to change the default impl of ESUOW to
> remember the usecase though, so that applyChanges can use it.

Yes.

Also, I am right now looking at

EntityStore.visitEntityStates( EntityStateVisitor<ThrowableType>
visitor, ModuleSPI module )
        throws ThrowableType;

and in the implementation JSONMapEntityStoreMixin, a DefaultESUOW is
created, meaning the Usecase would be needed.

Options;
1. Provide a Usecase which doesn't cache.
2. Grab the Usecase from UnitOfWork via
ModuleInstance.unitOfWorkFactory().currentUnitOfWork().
3. Add a Usecase argument.

Not sure what is most suitable...


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to