I can’t delete a rule entity using the Jpa repository. Neither using deleteById() nor delete();
@Getter
@Setter
@Entity
@Table(name = "group_rule")
public class Rule {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "technical_attribute_id", nullable = false)
private TechnicalAttribute technicalAttribute;
@Basic
@Column(name = "order_value")
private Integer order;
@Basic
@Column(name = "operator_code")
private String operatorCode;
@Basic
@Column(name = "parameters")
private String parameters;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "checkpoint_group_id", referencedColumnName = "id")
private Group group;
}
Are there any relationships (or other reasons) why I can’t delete the entity?