openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Curtis <curti...@gmail.com>
Subject Re: EntityManager.find ClassCastException for wrong but existing id
Date Wed, 10 Sep 2014 15:06:52 GMT
Can we see the exception?

Thanks,
Rick

On Wed, Sep 10, 2014 at 9:26 AM, olyalikov <oleg.lyalikov@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 but it should return either null or
> EntityNotFoundException.
> If I provide just some wrong non existing id I get null.
> Here is link to the maven project with test:  openjpa-find-test.zip
> <http://openjpa.208410.n2.nabble.com/file/n7587085/openjpa-find-test.zip>
> Should I post a bug in issue tracker?
>
> Thanks,
> Oleg
>
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/EntityManager-find-ClassCastException-for-wrong-but-existing-id-tp7587085.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
*Rick Curtis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message