import java.util.Date;
import org.mxchange.jaddressbook.model.addressbook.Addressbook;
import org.mxchange.jcontacts.model.contact.Contact;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
/**
* A POJI for addressbook entries
* <p>
* @return Business contact
*/
- BusinessBasicData getAddressbookEntryBusinessContact ();
+ BasicData getAddressbookEntryBusinessContact ();
/**
* Setter for business contact
* <p>
* @param addressbookEntryBusinessContact Business contact
*/
- void setAddressbookEntryBusinessContact (final BusinessBasicData addressbookEntryBusinessContact);
+ void setAddressbookEntryBusinessContact (final BasicData addressbookEntryBusinessContact);
/**
* Getter for entry created timestamp
import org.mxchange.jaddressbook.model.addressbook.UserAddressbook;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontacts.model.contact.UserContact;
-import org.mxchange.jcontactsbusiness.model.basicdata.CompanyBasicData;
+import org.mxchange.jcontactsbusiness.model.basicdata.BasicData;
import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
/**
@Entity (name = "addressbook_entries")
@Table (name = "addressbook_entries")
@NamedQueries (
- @NamedQuery (
- name = "SearchUsersAddressbookEntries",
- query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC")
+ {
+ @NamedQuery (
+ name = "SearchUsersAddressbookEntries",
+ query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC"
+ )
+ }
)
@SuppressWarnings ("PersistenceUnitPresent")
public class UserAddressbookEntry implements AddressbookEntry {
* Connection to table "business_contacts" (commercial contacts)
*/
@JoinColumn (name = "entry_business_contact_id", updatable = false)
- @OneToOne (targetEntity = CompanyBasicData.class, cascade = CascadeType.REFRESH)
- private BusinessBasicData addressbookEntryBusinessContact;
+ @OneToOne (targetEntity = BusinessBasicData.class, cascade = CascadeType.REFRESH)
+ private BasicData addressbookEntryBusinessContact;
/**
* When this address book entry has been created
}
@Override
- public BusinessBasicData getAddressbookEntryBusinessContact () {
+ public BasicData getAddressbookEntryBusinessContact () {
return this.addressbookEntryBusinessContact;
}
@Override
- public void setAddressbookEntryBusinessContact (final BusinessBasicData addressbookEntryBusinessContact) {
+ public void setAddressbookEntryBusinessContact (final BasicData addressbookEntryBusinessContact) {
this.addressbookEntryBusinessContact = addressbookEntryBusinessContact;
}