I am using Datanucleus/JDO to persist objects in a MongoDB DB. I try to persist an object containing a Map, which value type is an abstract class.
When I try to persist an instance of that object, fields of the abstract class are persisted, but not those of the child class.
Below is some code as an example.

Description

I am using Datanucleus/JDO to persist objects in a MongoDB DB. I try to persist an object containing a Map, which value type is an abstract class.
When I try to persist an instance of that object, fields of the abstract class are persisted, but not those of the child class.
Below is some code as an example.

Nowhere in the docs does it say that inherited embedded map keys/values are supported. In fact JDO3 and JPA2 don't define any support for them. JDO3.1 introduces some support, but currently only supported for collection elements with inheritance.

Andy Jefferson added a comment - 20/Dec/12 07:21 PM Nowhere in the docs does it say that inherited embedded map keys/values are supported. In fact JDO3 and JPA2 don't define any support for them. JDO3.1 introduces some support, but currently only supported for collection elements with inheritance.