ObjectDB ObjectDB

mappedSuperClass and subClass Duplicates

#1

When I subclass a mappedSuperClass, a table for both appears in the Explorer. Am I correct to expect that only the subclass appear? If so, please provided any clues for a remedy.

Thanks ...

edit
delete
#2

The super class is shown in the Explorer to enable viewing its schema and to enable opening instances of all its subclasses in one view window. No tables are created.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
edit
delete
#3

However, it appears that the super classes in the explorer count toward the ten (10) table limit for the free version of ObjectDB. Is this true?

Thanks ...

edit
delete
#4

As stated in the manual:

In JPA, classes that are declared as mapped superclasses have some of the features of entity classes, but also some restrictions. ObjectDB, however, does not enforce these restrictions so mapped superclasses are treated by ObjectDB as ordinary entity classes.

Mapped superclasses are really only useful in applications that use an ORM-based JPA provider (such as Hibernate, TopLink, EclipseLink, OpenJPA, JPOX, DataNucleus, etc.).

Accordingly, a mapped superclass is counted as an entity class.

 

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

Reply

To post on this website please sign in.