diff --git a/spring/src/main/java/com/pogoda/weather/model/EspAlerts.java b/spring/src/main/java/com/pogoda/weather/model/EspAlerts.java index 9374528..f3ef144 100644 --- a/spring/src/main/java/com/pogoda/weather/model/EspAlerts.java +++ b/spring/src/main/java/com/pogoda/weather/model/EspAlerts.java @@ -1,7 +1,6 @@ package com.pogoda.weather.model; import java.util.List; - import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; diff --git a/spring/src/main/java/com/pogoda/weather/model/EspUserSettings.java b/spring/src/main/java/com/pogoda/weather/model/EspUserSettings.java index 3c4ac52..ed21acc 100644 --- a/spring/src/main/java/com/pogoda/weather/model/EspUserSettings.java +++ b/spring/src/main/java/com/pogoda/weather/model/EspUserSettings.java @@ -16,7 +16,7 @@ public class EspUserSettings { @Id - private int userId; // To jest identyfikator, który w rzeczywistości powinien być zarządzany przez relację @ManyToOne z EspUsers + private int userId; private int preferedUnitId; private int lngId;