Skip to content
Snippets Groups Projects
Commit dd20227a authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

Fixing bug. The PolicyProperty could not be deleted

parent ec2f19b6
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ public class PolicyProperty extends CloneableEntity ...@@ -70,7 +70,7 @@ public class PolicyProperty extends CloneableEntity
@JoinColumn(name = "policy_type_id", referencedColumnName = "id") @JoinColumn(name = "policy_type_id", referencedColumnName = "id")
@ManyToOne(optional = false) @ManyToOne(optional = false)
private PolicyType policyType; private PolicyType policyType;
@OneToMany(cascade = CascadeType.ALL) @OneToMany(cascade = CascadeType.ALL, mappedBy = "policyProperty")
private List<ExperimentPolicyPropertyValue> experimentPolicyPropertyValueList; private List<ExperimentPolicyPropertyValue> experimentPolicyPropertyValueList;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "policyProperty") @OneToMany(cascade = CascadeType.ALL, mappedBy = "policyProperty")
private List<AllowedPolicyValue> allowedPolicyValueList; private List<AllowedPolicyValue> allowedPolicyValueList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment