openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olyalikov <>
Subject EntityManager.find ClassCastException for wrong but existing id
Date Wed, 10 Sep 2014 14:26:36 GMT

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
If I provide just some wrong non existing id I get null.
Here is link to the maven project with test:
Should I post a bug in issue tracker?


View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message