//bi-directional many-to-one association to ConstraintValue
@OneToMany(mappedBy="attribute", orphanRemoval=true, cascade=CascadeType.REMOVE)
@JsonIgnore
- private Set<ConstraintValue> constraintValues = new HashSet<ConstraintValue>();
+ private Set<ConstraintValue> constraintValues = new HashSet<>();
//bi-directional many-to-one association to Category
@ManyToOne
public ConstraintValue addConstraintValue(ConstraintValue constraintValue) {
if (this.constraintValues == null) {
- this.constraintValues = new HashSet<ConstraintValue>();
+ this.constraintValues = new HashSet<>();
}
this.constraintValues.add(constraintValue);
constraintValue.setAttribute(this);