I'm trying to delete a parent/child self-join entity but unable to do so here is my mapping
@Entity public class FolderNode { @Id @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "hibernate_sequence") @SequenceGenerator(name = "hibernate_sequence", sequenceName = "hibernate_sequence") @Column(name="folder_id") private long folderId; @ManyToOne @Cascade(CascadeType.DELETE) @JoinColumn(name="parent_id") @OnDelete(action = org.hibernate.annotations.OnDeleteAction.CASCADE) private FolderNode parent; }