How you can handle the inheritance mechanism in Hibernate OGM, in particular using MongoDB? In "Hibernate OGM Reference" I read that the inheritance mechanism is not supported by OGM. So there is a way to avoid the problem? Thanks
Asked
Active
Viewed 189 times
1
-
what "problem"? – Neil Stockton Oct 08 '16 at 17:00
1 Answers
0
The documentation is misleading, inheritance is supported except for javax.persistence.InheritanceType#JOINED
.
This means that if your model is using javax.persistence.InheritanceType#SINGLE_TABLE
or javax.persistence.InheritanceType#TABLE_PER_CLASS
.
You should be fine.

Davide D'Alto
- 7,421
- 2
- 16
- 30