I'm having trouble with a many to many relation with JPA.
My code looks as follows:
The Sensor class:
@Entity
@Table(name = "sensor")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sensor {
@Id
private long chipId;
@OneToMany(mappedBy = "sensor")
@JsonBackReference
private Set userLinks;
private String firmwareVersion;
private long creationTimestamp;
private String notes;
private long lastMeasurementTimestamp;
private long lastEditTimestamp;
private double gpsLatitude;
private double gpsLongitude;
private double gpsAltitude;
private String country;
private String city;
private boolean indoor;
private boolean