From 69df34abb4c58e3f50cda5bd3c6acf77281bfc9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Apr 2016 16:09:10 +0200 Subject: [PATCH] added named queries for finding all contacts and all email addresses --- src/org/mxchange/jcontacts/contact/UserContact.java | 2 ++ 1 file changed, 2 insertions(+) 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") } -- 2.39.5