From fa45ff5c64eba1250f053332721f41f21b708642 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 1 Nov 2017 22:47:38 +0100 Subject: [PATCH] Continued: - removed SearchById as this is considered as performance-reducing. The reason is, that the EJB will then be more "asked" for single entries only. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/org/mxchange/jcontacts/model/contact/UserContact.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/org/mxchange/jcontacts/model/contact/UserContact.java b/src/org/mxchange/jcontacts/model/contact/UserContact.java index fabba22..ccdfffe 100644 --- a/src/org/mxchange/jcontacts/model/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/model/contact/UserContact.java @@ -69,7 +69,6 @@ import org.mxchange.jphone.model.phonenumbers.mobile.MobileNumber; @NamedQuery (name = "AllContactEmailAddresses", query = "SELECT c.contactEmailAddress FROM contacts AS c ORDER BY c.contactId ASC"), @NamedQuery (name = "AllContactsByCellphone", query = "SELECT c FROM contacts AS c WHERE c.contactMobileNumber = :mobileNumber ORDER BY c.contactId ASC"), @NamedQuery (name = "SearchContact", query = "SELECT c FROM contacts AS c WHERE c = :contact"), - @NamedQuery (name = "SearchContactById", query = "SELECT c FROM contacts AS c WHERE c.contactId = :contactId"), @NamedQuery (name = "SearchContactByEmailAddress", query = "SELECT c FROM contacts AS c WHERE LOWER(c.contactEmailAddress) LIKE LOWER(:emailAddress)") } ) -- 2.39.2