]> git.mxchange.org Git - jaddressbook-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 1 Nov 2017 21:46:29 +0000 (22:46 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 1 Nov 2017 21:46:29 +0000 (22:46 +0100)
- removed Search<Entity>ById as this is considered as performance-reducing. The
  reason is, that the EJB will then be more "asked" for single entries only.

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jaddressbook/model/addressbook/UserAddressbook.java

index efbfcc22bc89f9cf61d6d1081a6c5eea36e64f63..a350ca59c9ebb018181a40214b4006adfd2d9195 100644 (file)
@@ -51,7 +51,6 @@ import org.mxchange.jusercore.model.user.User;
                {
                        @NamedQuery (name = "AllUsersAddressbooks", query = "SELECT a FROM addressbooks AS a WHERE a.addressbookUser = :param ORDER BY a.addressbookId ASC"),
                        @NamedQuery (name = "SearchUserAddressbookName", query = "SELECT a FROM addressbooks AS a WHERE a.addressbookUser = :user AND LOWER(a.addressbookName) LIKE LOWER(:name)"),
-                       @NamedQuery (name = "SearchAddressbookById", query = "SELECT a FROM addressbooks AS a WHERE a.addressbookId = :id")
                }
 )
 @SuppressWarnings ("PersistenceUnitPresent")