From: Roland Häder Date: Thu, 6 Jul 2017 18:54:50 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa6486a1424073faca8114c7256844bc53b8fa15;p=jjobs-ejb.git Please cherry-pick: - these entity hints were maybe wrong because a List is being returned and not POJI alone. Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java index a08542a..e4a02d7 100644 --- a/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java +++ b/src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java @@ -138,7 +138,7 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.getAllContacts - CALLED!", this.getClass().getSimpleName())); //NOI18N // Create query instance - Query query = this.getEntityManager().createNamedQuery("AllContacts", UserContact.class); //NOI18N + Query query = this.getEntityManager().createNamedQuery("AllContacts"); //NOI18N // Get list List contacts = query.getResultList(); @@ -157,7 +157,7 @@ public class JobsContactSessionBean extends BaseJobsDatabaseBean implements Cont this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.getEmailAddressList - CALLED!", this.getClass().getSimpleName())); //NOI18N // Create query instance - Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses", String.class); //NOI18N + Query query = this.getEntityManager().createNamedQuery("AllContactEmailAddresses"); //NOI18N // Get list List emailAddresses = query.getResultList();