From e15d82ac9c74d5bf82ba91badaae125f5c61cd0e Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Mon, 11 Nov 2024 16:46:43 +0100 Subject: [PATCH] import title and salutation for person --- .../hsadminng/hs/migration/BaseOfficeDataImport.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java index 858e302d..6e8d0af9 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/BaseOfficeDataImport.java @@ -1065,10 +1065,11 @@ public abstract class BaseOfficeDataImport extends CsvDataImport { } private HsOfficePersonEntity addPerson(final HsOfficePersonEntity person, final Record contactRecord) { - // TODO: title+salutation: add to person - person.setGivenName(contactRecord.getString("first_name")); - person.setFamilyName(contactRecord.getString("last_name")); - person.setTradeName(contactRecord.getString("firma")); + person.setSalutation(contactRecord.getString("salut").trim()); + person.setTitle(contactRecord.getString("title").trim()); + person.setGivenName(contactRecord.getString("first_name").trim()); + person.setFamilyName(contactRecord.getString("last_name").trim()); + person.setTradeName(contactRecord.getString("firma").trim()); person.setPersonType(determinePersonType(contactRecord)); persons.put(contactRecord.getInteger("contact_id"), person);