diff --git a/sources/core/src/main/java/tools/dynamia/modules/email/domain/EmailAddress.java b/sources/core/src/main/java/tools/dynamia/modules/email/domain/EmailAddress.java index 4a431f8..6534fdd 100644 --- a/sources/core/src/main/java/tools/dynamia/modules/email/domain/EmailAddress.java +++ b/sources/core/src/main/java/tools/dynamia/modules/email/domain/EmailAddress.java @@ -17,12 +17,11 @@ package tools.dynamia.modules.email.domain; -import tools.dynamia.modules.saas.jpa.BaseEntitySaaS; - import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Table; import jakarta.validation.constraints.NotNull; +import tools.dynamia.modules.saas.jpa.BaseEntitySaaS; @Entity @Table(name = "email_addresses") @@ -82,4 +81,9 @@ public String getTag() { public void setTag(String tag) { this.tag = tag; } + + @Override + public String toString() { + return getEmail(); + } } diff --git a/sources/core/src/main/java/tools/dynamia/modules/email/domain/SMSMessageLog.java b/sources/core/src/main/java/tools/dynamia/modules/email/domain/SMSMessageLog.java index bb12204..e936035 100644 --- a/sources/core/src/main/java/tools/dynamia/modules/email/domain/SMSMessageLog.java +++ b/sources/core/src/main/java/tools/dynamia/modules/email/domain/SMSMessageLog.java @@ -17,10 +17,9 @@ package tools.dynamia.modules.email.domain; -import tools.dynamia.modules.saas.jpa.BaseEntitySaaS; - import jakarta.persistence.Entity; import jakarta.persistence.Table; +import tools.dynamia.modules.saas.jpa.BaseEntitySaaS; @Entity @Table(name = "email_sms_log") @@ -69,4 +68,9 @@ public String getResult() { public void setResult(String result) { this.result = result; } + + @Override + public String toString() { + return getPhoneNumber(); + } }