import java.io.Serializable;
import java.util.Date;
import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
+import org.mxchange.jcontactsbusiness.model.employee.Employable;
import org.mxchange.jproduct.model.payment.PaymentType;
import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jcontactsbusiness.model.employee.Employable;
/**
* An interface for receipts
*/
void setReceiptPaymentType (final PaymentType receiptPaymentType);
+ /**
+ * Getter for receipt sequence number
+ * <p>
+ * @return Receipt sequence number
+ */
+ Long getReceiptSequenceNumber ();
+
+ /**
+ * Setter for receipt sequence number
+ * <p>
+ * @param receiptSequenceNumber Receipt sequence number
+ */
+ void setReceiptSequenceNumber (final Long receiptSequenceNumber);
+
@Override
boolean equals (final Object object);
@OneToOne (targetEntity = BusinessEmployee.class, cascade = CascadeType.REFRESH)
private Employable receiptSellerEmployee;
+ /**
+ * Receipt sequence number
+ */
+ @Column (name = "receipt_sequence_number")
+ private Long receiptSequenceNumber;
+
/**
* Which user this receipt belongs to
*/
this.receiptSellerEmployee = receiptSellerEmployee;
}
+ @Override
+ public Long getReceiptSequenceNumber () {
+ return this.receiptSequenceNumber;
+ }
+
+ @Override
+ public void setReceiptSequenceNumber (final Long receiptSequenceNumber) {
+ this.receiptSequenceNumber = receiptSequenceNumber;
+ }
+
@Override
public User getReceiptUser () {
return this.receiptUser;