From: Roland Haeder Date: Wed, 14 Oct 2015 09:31:54 +0000 (+0200) Subject: No more double-caching ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e74d080952e14208dcc8db3ae0117d2ef82a494;p=pizzaservice-mailer-ejb.git No more double-caching ... Signed-off-by:Roland Häder --- 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