Thanks Rickard,

Right now, I have a lot of inconsistencies in my "many associations".
When I check all of them, it looks like they point to entities that where never 
written to the store (since they are never removed).

So when I start qi4j I check my model and I iterate each "many association"... 
and use remove() to get rid of the inconsistencies...

The problem may be related to infinispan and the asynchronous write... 

Cheers,

phil

Le 25 févr. 2010 à 03:34, Rickard Öberg a écrit :

> On 2010-02-25 03.16, philippe van dyck wrote:
>> Hi all,
>> 
>> I am still struggling with qi4j / Infinispan / Jclouds and I found a bug.
>> 
>> In DefaultManyAssociationState, when you ask for an iterator, you get
>> the ArrayList iterator...
>> 
>> public Iterator<EntityReference> iterator()
>> {
>> return references.iterator();
>> }
>> 
>> So, when you update the list using the iterator, the state is not
>> updated (markUpdated() is not called).
> 
> Ok, I implemented Iterator.remove() properly now in 
> DefaultManyAssociationState. Hope it will work better for you now!
> 
> /Rickard
> 
> 
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev


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

Reply via email to