title: Strategy for writing to parent entity as well when storing child entities on a JPA schema with TABLE_PER_CLASS inheritance strategy
body: <pre><code>@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
  </code></pre>
  
  <p>in parent class allow to treat child entities as tables with the same information as parent plus some attributes. That's fine for me when reading (<a href="http://viralpatel.net/blogs/hibernate-inheritance-table-per-concrete-class-annotation-xml-mapping/" rel="nofollow">http://viralpatel.net/blogs/hibernate-inheritance-table-per-concrete-class-annotation-xml-mapping/</a>).</p>
  
  <p>But I'd like that in case I store a child entity (currently it only fills the child table), the parent table gets updated as well with the insertion of the shared part.</p>
  
  <p>Is that possible to configure, or do I need to explicitly perform <code>childRepo.save(child)</code> plus <code>parentRepo.save(child)</code> in a transaction at any given write operation?</p>
  
  <p>It would be in a way a mix from TABLE_PER_CLASS and JOINED strategies. JOINED stores shared info in parent, while extra attributes in child; whereas TABLE_PER_CLASS stores everything in child. I want child tables with all information whilst parent table gets synchronizedly all the shared info as well.</p>