]> git.mxchange.org Git - addressbook-mailer-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:26 +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/AddressbookContactSessionBean.java

index 61dd937a73dab06ec00e362c183a1735855693f6..2610872f0258f580cfcce43096ceb87758a5962d 100644 (file)
@@ -138,7 +138,7 @@ public class AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                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 AddressbookContactSessionBean extends BaseAddressbookDatabaseBean i
                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();