From ff360a0c27b922dc5371c8af9f1c037be73d99b8 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 12:23:04 +0200 Subject: [PATCH] =?utf8?q?let=20the=20logger=20log=20the=20size=20of=20the?= =?utf8?q?=20list=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../model/shared/SharedAddressbooksSessionBean.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java index 2608b58..edb9b1c 100644 --- a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java @@ -61,13 +61,19 @@ public class SharedAddressbooksSessionBean extends BaseDatabaseBean implements S } // Get named query - Query query = this.getEntityManager().createNamedQuery("SearchUserSharedAddressbooks"); //NOI18N + Query query = this.getEntityManager().createNamedQuery("SearchUserSharedAddressbooks", List.class); //NOI18N // Set parameter query.setParameter("user", user); //NOI18N // Return full list - return query.getResultList(); + List list = query.getResultList(); + + // Trace message + this.getLoggerBeanLocal().logTrace(MessageFormat.format("allSharedAddressbooks: list.size()={0} - EXIT!", list.size())); + + // Return list + return list; } @Override -- 2.39.5