Extended HashMap as Embeddable class



Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error.

public class A extends HashMap<String, String> {




User defined persistable classes that extend Java collection classes are not supported.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login