From: Roland Häder Date: Wed, 20 Apr 2016 14:09:10 +0000 (+0200) Subject: added named queries for finding all contacts and all email addresses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=69df34abb4c58e3f50cda5bd3c6acf77281bfc9f;p=jcontacts-core.git added named queries for finding all contacts and all email addresses --- diff --git a/src/org/mxchange/jcontacts/contact/UserContact.java b/src/org/mxchange/jcontacts/contact/UserContact.java index 51b0947..0f4beec 100644 --- a/src/org/mxchange/jcontacts/contact/UserContact.java +++ b/src/org/mxchange/jcontacts/contact/UserContact.java @@ -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") }