]> git.mxchange.org Git - addressbook-ejb.git/commitdiff
Contiunued:
authorRoland Haeder <roland@mxchange.org>
Wed, 21 Oct 2015 10:28:42 +0000 (12:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 21 Oct 2015 10:29:36 +0000 (12:29 +0200)
- having sharer and owner in entries table was redundancy to "shares" table, so removed "sharee" (the person the owner is sharing with)
- updated jar(s)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcontacts-business-core.jar
lib/jphone-core.jar
src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java

index 2d1b88fdd9fcd8c5d2fca5c2a3a1a649ef074bab..39d1c594c11c04e8294e30fd05b2b7caa8595b14 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index a6242e313134c45ad52f4d3c69d2552097c7f611..a5d222b5e458841311e097be654fba5408b3bc86 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 4f9dc70bf4f1000882509602c72ec5e3836f1df0..5460057d73a447dd45a0d4db491264ba97e69c01 100644 (file)
@@ -71,12 +71,11 @@ public class AddressbookSessionBean extends BaseDatabaseBean implements Addressb
                }
 
                // Generate query
-               Query query = this.getEntityManager().createNamedQuery("AllAddressbookEntries", List.class); //NOI18N
+               Query query = this.getEntityManager().createNamedQuery("SearchUsersAddressbookEntries", List.class); //NOI18N
 
                // Set parameters
                query.setParameter("addressbook", addressbook); //NOI18N
                query.setParameter("owner", addressbook.getAddressbookUser()); //NOI18N
-               query.setParameter("sharer", addressbook.getAddressbookUser()); //NOI18N
 
                // Return it
                return query.getResultList();