From 0152093bc270f1d197aac85c788be3b33bda9c02 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Tue, 16 Aug 2016 12:46:13 +0200
Subject: [PATCH] renamed it as well (please cherry-pick)

---
 .../phone/AddressbookPhoneSessionBean.java     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookPhoneSessionBean.java
index 247d420..43321a5 100644
--- a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookPhoneSessionBean.java
+++ b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookPhoneSessionBean.java
@@ -107,24 +107,24 @@ public class AddressbookPhoneSessionBean extends BaseDatabaseBean implements Pho
 	}
 
 	@Override
-	public DialableMobileNumber findMobileNumberById (final Long cellphoneId) throws PhoneEntityNotFoundException {
+	public DialableMobileNumber findMobileNumberById (final Long mobileNumberId) throws PhoneEntityNotFoundException {
 		// Trace message
-		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.findCellphoneById: cellphoneId={1} - CALLED!", this.getClass().getSimpleName(), cellphoneId)); //NOI18N
+		this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.findCellphoneById: mobileNumberId={1} - CALLED!", this.getClass().getSimpleName(), mobileNumberId)); //NOI18N
 
 		// The id number should be valid
-		if (null == cellphoneId) {
+		if (null == mobileNumberId) {
 			// Throw NPE
-			throw new NullPointerException("cellphoneId is null"); //NOI18N
-		} else if (cellphoneId < 1) {
+			throw new NullPointerException("mobileNumberId is null"); //NOI18N
+		} else if (mobileNumberId < 1) {
 			// Not valid
-			throw new IllegalArgumentException(MessageFormat.format("cellphoneId={0} is not valid.", cellphoneId)); //NOI18N
+			throw new IllegalArgumentException(MessageFormat.format("mobileNumberId={0} is not valid.", mobileNumberId)); //NOI18N
 		}
 
 		// Now find it
-		Query query = this.getEntityManager().createNamedQuery("SearchCellphoneId", MobileNumber.class); //NOI18N
+		Query query = this.getEntityManager().createNamedQuery("SearchMobileNumberId", MobileNumber.class); //NOI18N
 
 		// Set parameter
-		query.setParameter("cellphoneId", cellphoneId); //NOI18N
+		query.setParameter("mobileNumberId", mobileNumberId); //NOI18N
 
 		// Init instance
 		DialableMobileNumber cellphone = null;
@@ -135,7 +135,7 @@ public class AddressbookPhoneSessionBean extends BaseDatabaseBean implements Pho
 			cellphone = (DialableMobileNumber) query.getSingleResult();
 		} catch (NoResultException ex) {
 			// The entry was not found, so throw it again
-			throw new PhoneEntityNotFoundException(cellphoneId, ex);
+			throw new PhoneEntityNotFoundException(mobileNumberId, ex);
 		}
 
 		// Trace message
-- 
2.39.5