]> git.mxchange.org Git - jaddressbook-core.git/commitdiff
It is now BusinessBasicData which is merged from BusinessContact and the same class...
authorRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2017 19:14:04 +0000 (21:14 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2017 19:14:04 +0000 (21:14 +0200)
src/org/mxchange/jaddressbook/model/addressbook/entry/AddressbookEntry.java
src/org/mxchange/jaddressbook/model/addressbook/entry/UserAddressbookEntry.java

index b30fb82934a00fb3e9640b625483a4eb860a79d4..af605a8225a68458fe62dab75ad549cd4b676cfb 100644 (file)
@@ -20,7 +20,7 @@ import java.io.Serializable;
 import java.util.Calendar;
 import org.mxchange.jaddressbook.model.addressbook.Addressbook;
 import org.mxchange.jcontacts.contact.Contact;
-import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jcontactsbusiness.BusinessBasicData;
 
 /**
  * A POJI for addressbook entries
@@ -48,14 +48,14 @@ public interface AddressbookEntry extends Serializable {
         * <p>
         * @return Business contact
         */
-       BusinessContact getAddressbookEntryBusinessContact ();
+       BusinessBasicData getAddressbookEntryBusinessContact ();
 
        /**
         * Setter for business contact
         * <p>
         * @param addressbookEntryBusinessContact Business contact
         */
-       void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact);
+       void setAddressbookEntryBusinessContact (final BusinessBasicData addressbookEntryBusinessContact);
 
        /**
         * Getter for entry created timestamp
index c01ff06927963bcaa4c437f6418dd19b8ebb855b..e3c461e464612901da7d645d23e9e96dbe60f425 100644 (file)
@@ -37,8 +37,8 @@ import org.mxchange.jaddressbook.model.addressbook.Addressbook;
 import org.mxchange.jaddressbook.model.addressbook.UserAddressbook;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.UserContact;
-import org.mxchange.jcontactsbusiness.BusinessContact;
-import org.mxchange.jcontactsbusiness.CompanyContact;
+import org.mxchange.jcontactsbusiness.CompanyBasicData;
+import org.mxchange.jcontactsbusiness.BusinessBasicData;
 
 /**
  * A POJO for address book entries
@@ -65,8 +65,8 @@ public class UserAddressbookEntry implements AddressbookEntry {
         * Connection to table "business_contacts" (commercial contacts)
         */
        @JoinColumn (name = "entry_business_contact_id", updatable = false)
-       @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.REFRESH)
-       private BusinessContact addressbookEntryBusinessContact;
+       @OneToOne (targetEntity = CompanyBasicData.class, cascade = CascadeType.REFRESH)
+       private BusinessBasicData addressbookEntryBusinessContact;
 
        /**
         * When this address book entry has been created
@@ -131,12 +131,12 @@ public class UserAddressbookEntry implements AddressbookEntry {
        }
 
        @Override
-       public BusinessContact getAddressbookEntryBusinessContact () {
+       public BusinessBasicData getAddressbookEntryBusinessContact () {
                return this.addressbookEntryBusinessContact;
        }
 
        @Override
-       public void setAddressbookEntryBusinessContact (final BusinessContact addressbookEntryBusinessContact) {
+       public void setAddressbookEntryBusinessContact (final BusinessBasicData addressbookEntryBusinessContact) {
                this.addressbookEntryBusinessContact = addressbookEntryBusinessContact;
        }