In this video I have shown how we can create a parent child relationship between 2 entities and number of ways we can insert records in table when entities have this parent child relationship. Topics covered:
Implementation of annotation @OneToMany
Implementation of annotation @ManyToOne
@JoinColumn annotation properties
3 ways to save records in a table.