From: Roland Häder Date: Mon, 22 Aug 2016 14:38:32 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4911bf67264d85de6eb3153c962f8f6a1ffe0ea0;p=jfinancials-mailer-ejb.git Please cherry-pick: - set "phone entry updated" timestamp - included class name in logger message --- diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminPhoneSessionBean.java index 2d1799f..87ddec1 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminPhoneSessionBean.java @@ -215,11 +215,14 @@ public class AddressbookAdminPhoneSessionBean extends BaseAddressbookDatabaseBea assert (foundNumber instanceof DialableMobileNumber) : MessageFormat.format("Cell phone number with id {0} not found, but should be.", mobileNumber.getPhoneId()); //NOI18N // Debug message - this.getLoggerBeanLocal().logDebug(MessageFormat.format("updateMobileData: foundNumber.phoneId={0}", foundNumber.getPhoneId())); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("{0}.updateMobileData: foundNumber.phoneId={1}", this.getClass().getSimpleName(), foundNumber.getPhoneId())); //NOI18N // Merge contact instance DialableMobileNumber detachedNumber = this.getEntityManager().merge(foundNumber); + // Set updated timestamp + detachedNumber.setPhoneEntryUpdated(new GregorianCalendar()); + // Trace message this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.updateMobileData: detachedNumber={1} - EXIT!", this.getClass().getSimpleName(), detachedNumber)); //NOI18N