Using ObjectDB [ObjectDB 2.4.1] javax.jdo.JDOUserException Attempt to store an instance of a non persistable type com.A
@PersistenceCapable
public abstract class B
{
...
@Embedded
protected com.A a = new A();
}
Unfortunately we have been using class A from a library for many years and don't have source available anymore and I cannot put PersistenceCapable annotation on com.A.java. What can I do?
Edit
I think the answer is to add package.jdo for class A. But I still don't understand why is JDO making me either add annotation or make an entry in .jdo file for every class that i want to persist. I wish this could somehow be driven by Serializable interface.