Key class not found exception
532566Sep 7 2006 — edited Sep 7 2006I believe there is a bug in the DPL that manifests itself when an entity has a field representing a TOMANY relationship with another entity and this second entity has not yet been encountered by the runtime. I get an exception saying the primary key class for the second entity is not found. Everything works fine if the relationship is TOONE. As I said before, this bug may not appear unless the conditions are right - the runtime needs to encounter the second entity for the first time ever in a TOMANY relationship.
I have worked around the problem by explicitly registering the key classes for all my entities before I open the store.
Be great if someone on the DPL team could take a closer look ...