]> git.mxchange.org Git - jfinancials-ejb.git/commitdiff
No more double-caching ...
authorRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 09:31:54 +0000 (11:31 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 14 Oct 2015 09:31:54 +0000 (11:31 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/addressbook/model/shared/SharedAddressbooksSessionBean.java

index 350c18b4a39f008f6a855fa3037418948923122b..8407f00cc4231fabb9d7229a5523f315d444c330 100644 (file)
@@ -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<ShareableAddressbook> 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