]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Mon, 22 Aug 2016 14:38:32 +0000 (16:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 24 Aug 2016 19:22:19 +0000 (21:22 +0200)
- set "phone entry updated" timestamp
- included class name in logger message

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

index ef9b8e9bef82269ea403c4a8b03289d9394d2727..a2c297e7d0f84e7d4755b1554aa13b1f07c14e27 100644 (file)
@@ -119,11 +119,14 @@ public class PizzaAdminPhoneSessionBean extends BasePizzaDatabaseBean implements
                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