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
* <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
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
* 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
}
@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;
}