From: Roland Haeder Date: Thu, 14 Apr 2016 14:53:25 +0000 (+0200) Subject: The persistence will happen in the EJBs. So all these calls needs to be rewritten... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a63d81882f6651612d22d03b3f45aa72000d3802;p=addressbook-swing.git The persistence will happen in the EJBs. So all these calls needs to be rewritten to EJB business method calls. Maybe they need to be configurable as users may not run an EJB container on their local machine ... ;-) --- diff --git a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java index 5ade6a0..177ec38 100644 --- a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java @@ -23,8 +23,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; import org.mxchange.addressbook.client.AddressbookClient; import org.mxchange.jcontacts.contact.Contact; import org.mxchange.jcontacts.contact.gender.Gender; @@ -52,12 +50,6 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad */ private final List columnNames; - /** - * Entity manager - */ - @PersistenceContext - private EntityManager entityManager; - /** * Logger instance */