Skip to content

Commit

Permalink
fix(simulator): exclude recursive to-string properties
Browse files Browse the repository at this point in the history
Signed-off-by: Timon Borter <[email protected]>
  • Loading branch information
bbortt committed Mar 1, 2024
1 parent 0905144 commit 842b814
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public class Message extends AbstractAuditingEntity<Message, Long> implements Se
@OneToMany(fetch = FetchType.LAZY, mappedBy = "message", cascade = CascadeType.ALL, orphanRemoval = true)
private final Set<MessageHeader> headers = new HashSet<>();

@ToString.Exclude
@ManyToOne(fetch = FetchType.LAZY)
@JsonIgnoreProperties(value = {"scenarioParameters", "scenarioActions", "scenarioMessages"}, allowSetters = true)
private ScenarioExecution scenarioExecution;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public class MessageHeader extends AbstractAuditingEntity<MessageHeader, Long> i
private String value;

@NotNull
@ToString.Exclude
@ManyToOne(optional = false)
@JoinColumn(nullable = false)
@JsonIgnoreProperties(value = {"headers", "scenarioExecution"}, allowSetters = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class ScenarioAction implements Serializable {
private Instant endDate;

@ManyToOne
@ToString.Exclude
@JsonIgnoreProperties(value = { "scenarioParameters", "scenarioActions", "scenarioMessages" }, allowSetters = true)
private ScenarioExecution scenarioExecution;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public class ScenarioParameter extends AbstractAuditingEntity<ScenarioParameter,
private String value;

@ManyToOne
@ToString.Exclude
@JsonIgnoreProperties(value = {"scenarioParameters", "scenarioActions", "scenarioMessages"}, allowSetters = true)
private ScenarioExecution scenarioExecution;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class TestParameter extends AbstractAuditingEntity<TestParameter, TestPar

@NotNull
@ManyToOne
@ToString.Exclude
@MapsId("testResultId")
@JoinColumn(name = "test_result_id", nullable = false)
@JsonIgnoreProperties(value = { "testParameters" }, allowSetters = true)
Expand Down

0 comments on commit 842b814

Please sign in to comment.