From cf06950b622e0199946d9f71b89d81546bdbc52f Mon Sep 17 00:00:00 2001 From: omenem Date: Mon, 27 Apr 2020 18:59:01 +0200 Subject: [PATCH] fix --- .../sa4/sanmarinoes/smarthut/models/Thermostat.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/Thermostat.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/Thermostat.java index 689c7ee..e8f0e86 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/Thermostat.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/Thermostat.java @@ -1,14 +1,9 @@ package ch.usi.inf.sa4.sanmarinoes.smarthut.models; -import ch.usi.inf.sa4.sanmarinoes.smarthut.config.GsonExclude; -import ch.usi.inf.sa4.sanmarinoes.smarthut.config.SocketGsonExclude; import com.google.gson.annotations.SerializedName; import java.math.BigDecimal; -import java.util.HashSet; -import java.util.Set; import javax.persistence.Column; import javax.persistence.Entity; -import javax.persistence.OneToMany; import javax.persistence.Transient; import javax.validation.constraints.NotNull; @@ -86,11 +81,6 @@ public class Thermostat extends Switchable implements BooleanTriggerable { @Column private boolean useExternalSensors = false; - @OneToMany(mappedBy = "scene", orphanRemoval = true) - @GsonExclude - @SocketGsonExclude - private Set> triggers = new HashSet<>(); - /** Creates a thermostat with a temperature sensor and its initial OFF state */ public Thermostat() { super("thermostat");