You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Dalia Abo Sheasha (JIRA)" <ji...@apache.org> on 2014/05/27 16:03:01 UTC

[jira] [Updated] (OPENJPA-2506) StoreCache interface doesn't work for many ID types

     [ https://issues.apache.org/jira/browse/OPENJPA-2506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dalia Abo Sheasha updated OPENJPA-2506:
---------------------------------------

    Attachment: patch-FacadeHelperFix.patch

I attached a patch where I replaced JPAFacadeHelper's OpenJPAObjectId conversion with one that mimics how BrokerImpl does the conversion. I also fixed TestJPAFacadeHelper because it was testing the wrong behavior and added a few more tests for various Id types. 

> StoreCache interface doesn't work for many ID types
> ---------------------------------------------------
>
>                 Key: OPENJPA-2506
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2506
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: datacache, kernel
>    Affects Versions: 2.4.0
>            Reporter: Rick Curtis
>         Attachments: patch-FacadeHelperFix.patch
>
>
> While doing some internal testing, it was discovered that the javax.persistence.Cache.contains(Class, Object) method doesn't work for a number of id types. The implementation depends on JPAFacade helper to convert user provided [Class, Object] into a proper OpenJPAId, but it doesn't work in all cases. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)