skip to Main Content

Postgresql – Cascade Delete in JPA Failing

I am using Java, Spring and JPA and cannot get cascade deletion to work. I have a class Tenant that looks like this @Entity @Validated @Data @Builder @NoArgsConstructor @AllArgsConstructor @TenantConstraints public class Tenant { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =…

VIEW QUESTION

Function trigger with count in postgresql

I have created some schemas (dsfv, dsfn, etc.) and insert some tables inside each schema, including the following tables : poste_hta_bt (parent table with attribute "code_pt" as unique key); transfo_hta_bt (having also "code_pt" attribute as foreign key that referenced poste_hta_bt).…

VIEW QUESTION
Back To Top
Search