I have the following defined entities:
When using any Hibernate version above 5.2.12 we are experiencing a strange behavior once transaction is committed after persisting an entity - only the common fields are persisted - the "JOINED" part is not. Thus, if attempting to retrieve the persisted entity by its assigned ID we are getting null. An inspection of the actual database table confirms this is the case: the common fields exist for the persisted assigned ID, but the JOINED part is missing
Here is where it is really getting interesting - there are other entities in the (same) system that used JOINED inheritance - and there it does not seem to happen. The only difference between the working ones to the failed ones is that the failed ones (i.e., the ones mentioned in this issue) also extend a @MappedSupperclass
Other than that, I can see no other difference.
As mentioned, this started happening as of 5.2.13 and up.
OpenJDK 8 build 171
Spring Data Kay-SR6