import java.io.Serializable;
import java.util.Calendar;
-import org.mxchange.jcontactsbusiness.BusinessContact;
+import org.mxchange.jcontactsbusiness.BusinessBasicData;
import org.mxchange.jproduct.model.payment.PaymentType;
import org.mxchange.jusercore.model.user.User;
* <p>
* @return Seller instance
*/
- BusinessContact getReceiptSeller ();
+ BusinessBasicData getReceiptSeller ();
/**
* Setter for seller instance
* <p>
* @param receiptSeller Seller instance
*/
- void setReceiptSeller (final BusinessContact receiptSeller);
+ void setReceiptSeller (final BusinessBasicData receiptSeller);
/**
* Getter for payment type
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
-import org.mxchange.jcontactsbusiness.BusinessContact;
-import org.mxchange.jcontactsbusiness.CompanyContact;
+import org.mxchange.jcontactsbusiness.BusinessBasicData;
+import org.mxchange.jcontactsbusiness.CompanyBasicData;
import org.mxchange.jproduct.model.payment.PaymentType;
import org.mxchange.jusercore.model.user.LoginUser;
import org.mxchange.jusercore.model.user.User;
* Seller instance
*/
@JoinColumn (name = "receipt_seller_id", referencedColumnName = "business_contact_id", nullable = false, updatable = false)
- @OneToOne (targetEntity = CompanyContact.class, cascade = CascadeType.REFRESH, optional = false)
- private BusinessContact receiptSeller;
+ @OneToOne (targetEntity = CompanyBasicData.class, cascade = CascadeType.REFRESH, optional = false)
+ private BusinessBasicData receiptSeller;
/**
* Which user this receipt belongs to
* @param receiptUser User instance
* @param receiptIssued When this receipt has been issued
*/
- public FinancialReceipt (final PaymentType receiptPaymentType, final BusinessContact receiptSeller, final User receiptUser, final Calendar receiptIssued) {
+ public FinancialReceipt (final PaymentType receiptPaymentType, final BusinessBasicData receiptSeller, final User receiptUser, final Calendar receiptIssued) {
// Call other constructor first
this();
}
@Override
- public BusinessContact getReceiptSeller () {
+ public BusinessBasicData getReceiptSeller () {
return this.receiptSeller;
}
@Override
- public void setReceiptSeller (final BusinessContact receiptSeller) {
+ public void setReceiptSeller (final BusinessBasicData receiptSeller) {
this.receiptSeller = receiptSeller;
}