From cce8d7566e573af5b44d4aecba9fa112f0b7976a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 22 Aug 2016 16:38:32 +0200 Subject: [PATCH] Please cherry-pick: - set "phone entry updated" timestamp - included class name in logger message --- .../phonenumbers/phone/PizzaAdminPhoneSessionBean.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java index ef9b8e9..a2c297e 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/PizzaAdminPhoneSessionBean.java @@ -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 -- 2.39.5