*/
void setReceiptPaymentType (final PaymentType receiptPaymentType);
+ /**
+ * Getter for receipt QR code
+ * <p>
+ * @return Receipt QR code
+ */
+ String getReceiptQrCode ();
+
+ /**
+ * Setter for receipt QR code
+ * <p>
+ * @param receiptQrCode Receipt QR code
+ */
+ void setReceiptQrCode (final String receiptQrCode);
+
/**
* Getter for receipt sequence number
* <p>
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
@OneToOne (targetEntity = LoginUser.class, cascade = CascadeType.REFRESH)
private User receiptUser;
+ /**
+ * Recipient QR code
+ */
+ @Lob ()
+ @Column (name = "receipt_qr_code")
+ private String receiptQrCode;
+
/**
* Default constructor
*/
this.receiptPaymentType = receiptPaymentType;
}
+ @Override
+ public String getReceiptQrCode () {
+ return this.receiptQrCode;
+ }
+
+ @Override
+ public void setReceiptQrCode (final String receiptQrCode) {
+ this.receiptQrCode = receiptQrCode;
+ }
+
@Override
public Long getReceiptRegisterNumber () {
return this.receiptRegisterNumber;
hash = 89 * hash + Objects.hashCode(this.getReceiptIssued());
hash = 89 * hash + Objects.hashCode(this.getReceiptNumber());
hash = 89 * hash + Objects.hashCode(this.getReceiptPaymentType());
+ hash = 89 * hash + Objects.hashCode(this.getReceiptQrCode());
hash = 89 * hash + Objects.hashCode(this.getReceiptRegisterNumber());
hash = 89 * hash + Objects.hashCode(this.getReceiptSellerEmployee());
hash = 89 * hash + Objects.hashCode(this.getReceiptSequenceNumber());