Skip to content

Commit

Permalink
Add JsonIgnore annotation to EntityWithAlias#getAliasDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianhoelzl-sap committed Feb 22, 2024
1 parent afe1673 commit 408158b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import org.springframework.lang.Nullable;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
* An entity that can have an alias in another identity zone.
*/
Expand All @@ -25,6 +27,7 @@ public interface EntityWithAlias {
/**
* Get a description of the entity including its alias properties, e.g., for logging.
*/
@JsonIgnore
default String getAliasDescription() {
return String.format(
"%s[id=%s,zid=%s,aliasId=%s,aliasZid=%s]",
Expand Down

0 comments on commit 408158b

Please sign in to comment.