openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dick (JIRA)" <>
Subject [jira] Updated: (OPENJPA-1218) Cache.evict(Clazz) should remove subclasses as well
Date Fri, 31 Jul 2009 21:58:14 GMT


Michael Dick updated OPENJPA-1218:

    Remaining Estimate: 0h
     Original Estimate: 0h
               Summary: Cache.evict(Clazz) should remove subclasses as well  (was: Cache.evit(Clazz)
should remove subclasses as well)

> Cache.evict(Clazz) should remove subclasses as well
> ---------------------------------------------------
>                 Key: OPENJPA-1218
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache
>    Affects Versions: 2.0.0-M1, 2.0.0-M2, 2.0.0
>            Reporter: Kevin Sutter
>            Assignee: Michael Dick
>   Original Estimate: 0h
>  Remaining Estimate: 0h
> This problem was discovered while working a separate issue with the EHCache plugin developer
(Craig Andrews).  The complete exchange can be found on this EHCache bug tracker [1].  According
to the latest JPA 2.0 spec, the contract for Cache.evict(Clazz) is as follows:
> /**
> * Remove the data for entities of the specified class (and its
> * subclasses) from the cache.
> */
> public void evict(Class cls);
> But, we are not removing the subclasses.  We need to change our implementation of Cache.evict(Clazz)
to be consistent with the spec.
> Also, as we were digging into this area of the code, the internal OpenJPA DataCache implementation
of the removeAllInternal(Clazz, boolean) method is not taking the boolean into account.  We
should correct this implementation at the same time.
> Thanks,
> Kevin
> [1]

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message