]> git.mxchange.org Git - jcontacts-core.git/commitdiff
added named queries for finding all contacts and all email addresses
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 14:09:10 +0000 (16:09 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2016 14:09:10 +0000 (16:09 +0200)
src/org/mxchange/jcontacts/contact/UserContact.java

index 51b094709340787b80acb49fc9806c72151e0fda..0f4beecfd88c41ccc200288761b989ac9baefdc7 100644 (file)
@@ -70,6 +70,8 @@ import org.mxchange.jphone.phonenumbers.landline.LandLineNumber;
 )
 @NamedQueries (
                {
+                       @NamedQuery( name = "AllContacts", query = "SELECT c FROM contacts AS c ORDER BY c.contactId ASC"),
+                       @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")
                }