Skip to content

Commit 6436adc

Browse files
committed
adds ignore annotations to (is-)getters that should not be serialized
1 parent 18d879c commit 6436adc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dsf-bpe-process-data-sharing/src/main/java/org/highmed/dsf/bpe/variable/QueryResult.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.highmed.openehr.model.structure.ResultSet;
44

55
import com.fasterxml.jackson.annotation.JsonCreator;
6+
import com.fasterxml.jackson.annotation.JsonIgnore;
67
import com.fasterxml.jackson.annotation.JsonProperty;
78

89
public class QueryResult
@@ -78,16 +79,19 @@ public String getResultSetUrl()
7879
return resultSetUrl;
7980
}
8081

82+
@JsonIgnore
8183
public boolean isCohortSizeResult()
8284
{
8385
return resultSet == null && resultSetUrl == null;
8486
}
8587

88+
@JsonIgnore
8689
public boolean isIdResultSetResult()
8790
{
8891
return resultSet != null && resultSetUrl == null;
8992
}
9093

94+
@JsonIgnore
9195
public boolean isIdResultSetUrlResult()
9296
{
9397
return resultSet == null && resultSetUrl != null;

dsf-bpe-process-data-sharing/src/main/java/org/highmed/dsf/bpe/variable/SecretKeyWrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.slf4j.LoggerFactory;
1111

1212
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.fasterxml.jackson.annotation.JsonIgnore;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
1415

1516
public class SecretKeyWrapper
@@ -48,6 +49,7 @@ private SecretKeyWrapper(@JsonProperty("bytes") byte[] bytes, @JsonProperty("alg
4849
this.algorithm = algorithm;
4950
}
5051

52+
@JsonIgnore
5153
public SecretKey getSecretKey()
5254
{
5355
return new SecretKeySpec(bytes, algorithm);

0 commit comments

Comments
 (0)