Extended HashMap as Embeddable class

#1

Hi,

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.

@Embeddable
public class A extends HashMap<String, String> {
(...)
}

 

 

#2

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