wip
This commit is contained in:
parent
6060e627dd
commit
74364effe6
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,9 @@ public class Automation {
|
|||
@OneToMany(mappedBy = "automation", cascade = CascadeType.REMOVE)
|
||||
private Set<ScenePriority> scenes = new HashSet<>();
|
||||
|
||||
@OneToMany(mappedBy = "automation", orphanRemoval = true, cascade = CascadeType.REMOVE)
|
||||
private Set<Condition<?>> conditions = new HashSet<>();
|
||||
|
||||
@NotNull @NotEmpty private String name;
|
||||
|
||||
public long getId() {
|
||||
|
@ -78,4 +81,8 @@ public class Automation {
|
|||
public void setUserId(Long userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Set<Condition<?>> getConditions() {
|
||||
return conditions;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue