]> git.mxchange.org Git - jcontacts-core.git/commitdiff
renamed to better name
authorRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 09:47:24 +0000 (11:47 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 18 May 2016 09:47:24 +0000 (11:47 +0200)
src/org/mxchange/jcontacts/contact/UserContact.java

index 387e0273810125a0e2f60d22152a43617cf73909..fe17b21ef0e6344d6e112e6b60a0564eb6731f51 100644 (file)
@@ -69,7 +69,7 @@ import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
                        @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.contactCellphoneNumber = :cellPhone ORDER BY c.contactId ASC"),
                        @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 c.contactEmailAddress = :emailAddress")
+                       @NamedQuery (name = "SearchContactByEmailAddress", query = "SELECT c FROM contacts AS c WHERE LOWER(c.contactEmailAddress) LIKE LOWER(:emailAddress)")
                }
 )
 @SuppressWarnings ("PersistenceUnitPresent")