a collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance
-
a collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance 발생 시Spring 2022. 2. 16. 21:30
연관관계를 가지고 있는 한 객체를 바꾸려고 할 때 다음과 같은 오류가 발생하였다. a collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance 원인 @Entity class Parent { @OneToMany(mappedBy="parent", cascade=CascadeType.ALL, orphanRemoval=true) private List children; public void setChildren(List list){ this.children = list } @Entity class Child { @ManyToOne @JoinColumn(name = "parentid") Pare..