Re: Data cache does not work in OpenJPA 2.2.2

2014-09-10 Thread olyalikov
I just wanted to post an update about the issue. We made own release of OpenJPA 2.2.2 with merged fix, we use it ~3 months and all goes well (tests ok, performance ok). So if somebody is interested, here are forked and fixed sources: https://github.com/oamp-cms/openjpa, CI job:

EntityManager.find ClassCastException for wrong but existing id

2014-09-10 Thread olyalikov
Hello, I have base entity and 2 inheritors e.g. Person and Document. If I try to find Person entity and provide id of the Document entity I get ClassNotFoundException but it should return either null or EntityNotFoundException. If I provide just some wrong non existing id I get null. Here is

Re: EntityManager.find ClassCastException for wrong but existing id

2014-09-10 Thread Rick Curtis
Can we see the exception? Thanks, Rick On Wed, Sep 10, 2014 at 9:26 AM, olyalikov oleg.lyali...@alcatel-lucent.com wrote: Hello, I have base entity and 2 inheritors e.g. Person and Document. If I try to find Person entity and provide id of the Document entity I get ClassNotFoundException