From 6e74d080952e14208dcc8db3ae0117d2ef82a494 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 14 Oct 2015 11:31:54 +0200 Subject: [PATCH] =?utf8?q?No=20more=20double-caching=20...=20Signed-off-by?= =?utf8?q?: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, 1 insertion(+), 9 deletions(-) diff --git a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java index 350c18b..8407f00 100644 --- a/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java @@ -40,9 +40,7 @@ public class SharedAddressbooksSessionBean extends BaseDatabaseBean implements S private static final long serialVersionUID = 136_984_697_285_694_710L; /** - * Shared address books. If you add another share to the database, please - * also update this list as some methods may prefer this over asking the JPA - * all over again. + * Shared address books */ private List shares; @@ -70,12 +68,6 @@ public class SharedAddressbooksSessionBean extends BaseDatabaseBean implements S } else if (user.getUserId() < 1) { // Not allowed value throw new IllegalArgumentException(MessageFormat.format("user.UserId={0} is an invalid value", user.getUserId())); //NOI18N - } else if (this.shares instanceof List) { - // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isUserSharingAddressbooks: this.shares.isEmpty()={0} - EXIT!", this.shares.isEmpty())); - - // Is already initialized - return (!this.shares.isEmpty()); } // Get named query -- 2.39.5