]> git.mxchange.org Git - pizzaservice-mailer-ejb.git/blobdiff - src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java
Continued a bit: (please cherry-pick)
[pizzaservice-mailer-ejb.git] / src / java / org / mxchange / jphone / phonenumbers / phone / AddressbookAdminContactPhoneSessionBean.java
index 7d3edd754bf1275fd2f6d505f8ee958c3983cf5b..6f580b56a192546faac8694b284661187ddc1963 100644 (file)
@@ -22,6 +22,7 @@ import javax.ejb.Stateless;
 import javax.persistence.NoResultException;
 import javax.persistence.Query;
 import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.UserContact;
 import org.mxchange.jcontacts.phone.AdminContactsPhoneSessionBeanRemote;
 import org.mxchange.jcoreee.database.BaseDatabaseBean;
 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
@@ -58,7 +59,7 @@ public class AddressbookAdminContactPhoneSessionBean extends BaseDatabaseBean im
                List<Contact> contacts = null;
 
                // Get query object from all found contact-cellphone links
-               Query query = this.getEntityManager().createNamedQuery("AllContactsByCellphone", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("AllContactsByCellphone", UserContact.class); //NOI18N
 
                // Set parameter
                query.setParameter("cellPhone", cellPhone); //NOI18N