From: Roland Haeder Date: Wed, 21 Oct 2015 10:28:42 +0000 (+0200) Subject: Contiunued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5dabdb6e4c7275f2c4973c702cf56a4c090da0fc;p=jfinancials-mailer-ejb.git Contiunued: - 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 --- diff --git a/lib/jcontacts-business-core.jar b/lib/jcontacts-business-core.jar index 2d1b88f..39d1c59 100644 Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ diff --git a/lib/jphone-core.jar b/lib/jphone-core.jar index a6242e3..a5d222b 100644 Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ diff --git a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java index 4f9dc70..5460057 100644 --- a/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java +++ b/src/java/org/mxchange/addressbook/model/addressbook/AddressbookSessionBean.java @@ -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();