Many to One Relationship While removing child object it's throwing exception
I am doing Many To One relationship using JPA . While deleting child object from Child table it's throwing exception. Below is My code: Project.java @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name="id") private int id; @Column(name="projectName") private String projectName; @Column(name="projectDesc") private String projectDesc; @ManyToOne(cascade=CascadeType.ALL, fetch=FetchType.EAGER) @JoinColumn(name="companyId") Company.java @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(name="id") private int id; @Column(name="compName") private String compName; @Column