An external cache provider will not solve the problem you've describe. If
you use bi-directional relationships AND you set both sides correctly you
shouldn't have this problem.

Thanks,
Rick


On Mon, Mar 10, 2014 at 6:39 PM, Alice <ashanai...@yahoo.com> wrote:

> When we use OpenJPA's cache, there are issues when retrieving data with
> foreign key constraints. For example, we have an entity A with FK entity B.
> We add a row in Table A and save it. We create a row in table B and set it
> to A. When we retrieve that data now, if cache is enabled, it will only get
> A, and not B. This happens only in cases where the FK was created and saved
> after parent entity was saved.
>
> Right now, we disabled cache to get around this issue, but we may run into
> performance issues later on.
>
> Is there a way to fix this issue? Can we use an external cache provider
> like
> memcache or ehcache?
>
> thanks,
>
> Alice
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Issue-with-OpenJPA-default-cache-use-external-cache-tp7586064.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

Reply via email to