We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98ffd80 + c9cdc4b commit 12fe1dfCopy full SHA for 12fe1df
src/main/java/com/getourguide/interview/entity/Supplier.java
@@ -1,6 +1,8 @@
1
package com.getourguide.interview.entity;
2
3
+import com.fasterxml.jackson.annotation.JsonIgnore;
4
import jakarta.persistence.Entity;
5
+import jakarta.persistence.FetchType;
6
import jakarta.persistence.Id;
7
import jakarta.persistence.OneToMany;
8
import jakarta.persistence.Table;
@@ -20,6 +22,7 @@ public class Supplier {
20
22
private String zip;
21
23
private String city;
24
private String country;
- @OneToMany(mappedBy = "supplier")
25
+ @OneToMany(mappedBy = "supplier", fetch = FetchType.LAZY)
26
+ @JsonIgnore
27
private List<Activity> activities;
28
}
0 commit comments