]> git.mxchange.org Git - jjobs-ejb.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Thu, 6 Jul 2017 18:54:50 +0000 (20:54 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 6 Jul 2017 18:56:17 +0000 (20:56 +0200)
- these entity hints were maybe wrong because a List<POJI> is being returned and
  not POJI alone.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jcontacts/contact/JobsContactSessionBean.java

index a08542a8b0716cd3ec16e4cbd67cf5072b685ce0..e4a02d717b576a27abbba2120acfbfba03b90334 100644 (file)
@@ -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<Contact> 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<String> emailAddresses = query.getResultList();