/*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016, 2017 Roland Häder
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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;
}