I am using JOINED inheritance strategy with JPA implementation of EclipseLink. I noticed that EclipseLink adds the discriminator column, named DTYPE by default, to the database schema. I understand that discriminator is necessary for one table inheritance strategy, but why for the JOINED strategy?
EclipseLink needs this column because I have errors after deleting it. Is this column added for performance reasons, etc.? This is not particularly pleasing to me, because from the point of view of the database schema, this column is just an extra mess.
Hibernated JPA does nothing of the sort.
jpa eclipselink
Piotr kochański
source share