X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Fjava%2Forg%2Fmxchange%2Fjphone%2Fphonenumbers%2Fphone%2FAddressbookAdminContactPhoneSessionBean.java;h=6f580b56a192546faac8694b284661187ddc1963;hb=e696fecfb2c620b21a3da8418bea6ec5f1f7bacb;hp=7d3edd754bf1275fd2f6d505f8ee958c3983cf5b;hpb=b84a46695eb9544cecb9942f80b47569c8144a4f;p=pizzaservice-mailer-ejb.git diff --git a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java index 7d3edd7..6f580b5 100644 --- a/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java +++ b/src/java/org/mxchange/jphone/phonenumbers/phone/AddressbookAdminContactPhoneSessionBean.java @@ -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 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