From 86a99ed7b77c4e506485cc2c5f4ebc1a02ac5753 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 26 Apr 2016 11:27:17 +0200 Subject: [PATCH] Continued with customer: - implemented business method addCustomer() - implemented business method isContactFound() - implemented business method updateContactData() with only a contact instance - added much more log messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jcontacts/contact/JobsContactSessionBean.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java index 213fd36..2c4e53c 100644 --- a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java @@ -19,7 +19,6 @@ package org.mxchange.jcontacts.contact; import java.text.MessageFormat; import java.util.Iterator; import java.util.List; -import java.util.Objects; import javax.ejb.Stateless; import javax.persistence.NoResultException; import javax.persistence.Query; @@ -173,20 +172,14 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont Contact next = iterator.next(); // Is same contact? - if ((Objects.equals(contact, next)) || (ContactUtils.isSameContact(contact, next))) { - // Debug message - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isContactFound: Found same contact, id={0}", next.getContactId())); //NOI18N - + if (ContactUtils.isSameContact(contact, next)) { // Found it foundContact = next; break; } } - // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isContactFound: foundContact={0} - EXIT!", foundContact)); //NOI18N - - // Return status + // Return found contact return foundContact; } -- 2.39.5