class B extends A
A is abstract
B is concrete

i have persisted an instance of B. now i try:

A a = em.find(A.class, anId);

openjpa fails with:

... Cannot create new application identity instance for abstract class "class A"

if i change the find to:

A a = em.find(B.class, anId);

openjpa works okay.
 
this isn't a big deal, but i'd expect the find() on the abstract class to work, 
because it seems like a mistake to expect the caller to know the implementation 
of the class in order to fetch it, if all they know about is the abstract class.

for what it's worth, this test does work w/ toplink. 

thoughts?



 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Reply via email to