On Wed, Nov 7, 2012 at 2:41 AM, Andrus Adamchik <[email protected]> wrote:
> And yes - some decisions are needed on how to handle uncommitted modified and 
> deleted objects.
> It is hard for me to judge what's the best approach with those, as honestly 
> I've never had a scenario
> where I would care to fetch against uncommitted objects.

I think it has to be configurable per query.

I would expect that modified would be handled the same as new, but not
sure about delete as we rarely ever delete anything :-)


> Would be great if someone could share their typical use cases.

We are not using Cayenne but JPA in my current project, but one of the
items that we would need to address to convert from JPA to Cayenne is
that we flush financial transactions to the database.   Basically an
in-memory query where balances are computed at the current stage not
only based on what's in the database, but what transactions are
waiting to be committed to the database.   I don't know the details of
why we went this route but this is the big picture of our use case.

Reply via email to