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

Mysql – Unable to join two table JPA

I have two table and I try to join use column idsubscriber but show some error. Class Subscriber: @Entity @Table(name = "subscriber") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Subscriber.findAll", query = "SELECT s FROM Subscriber s") , @NamedQuery(name = "Subscriber.findById", query =…

VIEW QUESTION
Back To Top
Search