'Parent class not getting updated with new record when inserting record in child tables(inheritance strategy)
I have parent entity(Base Request) and 2 child entities (Request1 & Request2) and using Inheritance strategy. End goal:
- All common fields should appear in parent table and child tables.
- Inserting record in any of the child tables should populate record in parent table.
Solutions tried:
- Inheritance Strategy TABLE_PER_CLASS: It creates are fields in parent table and child tables but doesnt insert record in parent table.
- Inheritance Strategy JOINED: It removes common table fields from child tables
Is there anyway to achieve the end goal using hibernate or combination of Inheritance strategy?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
