]> git.mxchange.org Git - pizzaservice-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:10 +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/PizzaContactSessionBean.java

index b2c75b1d223335f4ceadef2f9014f2a4d13b43f6..71adaf0567f10d66edab8d67fe99281ba97741ce 100644 (file)
@@ -137,7 +137,7 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co
                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();
@@ -156,7 +156,7 @@ public class PizzaContactSessionBean extends BasePizzaDatabaseBean implements Co
                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();