From 21ea9fdc385d1cc0daabd473c380baaa2e9dcea0 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Thu, 6 Jul 2017 20:54:50 +0200
Subject: [PATCH] Please cherry-pick: - these entity hints were maybe wrong
 because a List<POJI> is being returned and   not POJI alone.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Roland Häder <roland@mxchange.org>
---
 .../mxchange/jcontacts/contact/PizzaContactSessionBean.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java b/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java
index b2c75b1..71adaf0 100644
--- a/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java
+++ b/src/java/org/mxchange/jcontacts/contact/PizzaContactSessionBean.java
@@ -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();
-- 
2.39.5