diff --git a/src/main/java/org/traccar/web/shared/model/NotificationSettings.java b/src/main/java/org/traccar/web/shared/model/NotificationSettings.java index c8616b38..d3a5561b 100644 --- a/src/main/java/org/traccar/web/shared/model/NotificationSettings.java +++ b/src/main/java/org/traccar/web/shared/model/NotificationSettings.java @@ -15,6 +15,8 @@ */ package org.traccar.web.shared.model; +import com.google.gwt.user.client.rpc.GwtTransient; + import javax.persistence.*; import java.io.Serializable; @@ -49,6 +51,7 @@ public NotificationSettings() { @Column(name = "id", nullable = false, updatable = false, unique = true) private long id; + @GwtTransient @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(foreignKey = @ForeignKey(name = "nsettings_fkey_user_id")) private User user;