Skip to content

Commit fe359c8

Browse files
committed
fix[backend](serialization): add @JsonIgnore to UtmModule lazy collections to prevent HttpMessageNotWritableException
1 parent 29fe2af commit fe359c8

File tree

1 file changed

+2
-0
lines changed
  • backend/src/main/java/com/park/utmstack/domain/application_modules

1 file changed

+2
-0
lines changed

backend/src/main/java/com/park/utmstack/domain/application_modules/UtmModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ public class UtmModule implements Serializable {
6262
@JoinColumn(name = "server_id", insertable = false, updatable = false)
6363
private UtmServer server;
6464

65+
@JsonIgnore
6566
@OneToMany(mappedBy = "module", fetch = FetchType.LAZY)
6667
private Set<UtmModuleGroup> moduleGroups = new HashSet<>();
6768

69+
@JsonIgnore
6870
@OneToMany(mappedBy = "module", fetch = FetchType.LAZY)
6971
private Set<UtmLogstashFilter> filters;
7072

0 commit comments

Comments
 (0)