1
0

add department to contact.postalAddress test data (#192)

Co-authored-by: Michael Hoennig <michael@hoennig.de>
Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/192
Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
Michael Hoennig
2025-09-01 15:20:49 +02:00
parent c0991d96d9
commit bc06001ce9
4 changed files with 32 additions and 6 deletions
@@ -42,6 +42,7 @@ public class HsOfficeContact implements Stringifyable, BaseEntity<HsOfficeContac
private static Stringify<HsOfficeContact> toString = stringify(HsOfficeContact.class, "contact")
.withProp(Fields.caption, HsOfficeContact::getCaption)
.withProp(Fields.postalAddress, HsOfficeContact::getPostalAddress)
.withProp(Fields.emailAddresses, HsOfficeContact::getEmailAddresses);
@Id
@@ -59,6 +60,7 @@ public class HsOfficeContact implements Stringifyable, BaseEntity<HsOfficeContac
@Setter(AccessLevel.NONE)
@Type(JsonType.class)
@Column(name = "postaladdress")
// Map can contain keys like: "department", "street", "zipcode", "city", "country", etc.
private Map<String, String> postalAddress = new HashMap<>();
@Transient