OK, I have a number of classes which are all subclasses of Entry (e.g., Folder, Link, Book). In the Folder class, there is a @OneToMany Map<String, Entry> children
If I store something in that map which is an Entry, then I can persist just fine. But if I try to put any of the subclasses into the map, then I get
[ObjectDB 2.3.6] javax.persistence.RollbackException
Failed to commit transaction: Attempt to persist a reference to a non managed com.typowebguide.directory.Folder instance - field com.typowebguide.directory.Folder.children (error 613)
is this a bug in ObjectDB or should I be handling this differently? Would this work better using JDO rather than JPA?
-dh