クラスを考える
@Entity
public class CustomType {
@Column
private String name;
@Column
private CustomType child;
}
エンティティを削除できる状況があり、child
エンティティにカスケードしたいparent
やろうとするとわかる
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: DELETE on table 'CustomType' caused a violation of foreign key constraint 'FK197854DCA5BD6640' for key (bece5b16-fafd-49fd-9ff3-cc19b050e174). The statement has been rolled back.
私が見逃しているのは何ですか?