This is the code:
@Entity public class Dept { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @OneToMany( mappedBy = "dept", cascade = ...