Re: EntityManager.find ClassCastException for wrong but existing id

2014-09-11 Thread olyalikov
I did a mistake - I'm getting not ClassNotFoundException but ClassCastException: java.lang.ClassCastException: org.apache.openjpa.find.entities.Document cannot be cast to org.apache.openjpa.find.entities.Person at org.apache.openjpa.find.FindTest.testFind(FindTest.java:54) It's a result

Re: EntityManager.find ClassCastException for wrong but existing id

2014-09-11 Thread Rick Curtis
I looked at your test, and it looks like an OpenJPA bug. I'd suggest opening a JIRA[1] and attach your test case. Thanks, Rick [1] https://issues.apache.org/jira/browse/OPENJPA On Thu, Sep 11, 2014 at 2:38 AM, olyalikov oleg.lyali...@alcatel-lucent.com wrote: I did a mistake - I'm getting