]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 22 Aug 2016 14:38:32 +0000 (16:38 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 9 Jun 2017 20:03:04 +0000 (22:03 +0200)
- set "phone entry updated" timestamp
- included class name in logger message

src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminPhoneSessionBean.java

index 2d1799fdff712e4a0a2f2f410f61f70dbbb7d337..87ddec1b3ea6d1231dc70420d73848861e2523f8 100644 (file)
@@ -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