]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/blobdiff - src/java/org/mxchange/jcontacts/contact/AddressbookContactSessionBean.java
Continued a bit: (please cherry-pick)
[pizzaservice-mailer-ejb.git] / src / java / org / mxchange / jcontacts / contact / AddressbookContactSessionBean.java
index 8b1aadda8e2e5aa293ca2feba7150b0b08a945f3..b60576ba8d3466f81db1e24527d360e2f5eb4e8d 100644 (file)
@@ -143,7 +143,7 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                this.getLoggerBeanLocal().logTrace("getAllContacts - CALLED!"); //NOI18N
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("AllContacts", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContacts", UserContact.class); //NOI18N
 
                // Get list
                List<Contact> contacts = query.getResultList();
@@ -162,7 +162,7 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                this.getLoggerBeanLocal().logTrace("getEmailAddressList - CALLED!"); //NOI18N
 
                // Create query instance
-               Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses", String.class); //NOI18N
 
                // Get list
                List<String> emailAddresses = query.getResultList();