java - How to save multiple tables in hibernate -


i have 3 tables example:table_a, table_b , table_c. parent b , c. how can save tables @ time of parent table in hibernate.

if have mapped tables entities, :

example:

//parent  @entity @inheritance(strategy = inheritancetype.joined) public abstract class car { }  @entity public class bcar extends car {}  @entity public class ccar extends car {}  session.save(bcar); session.save(ccar); 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -