* <p>
* @return Receipt creation timestamp
*/
- Date getReceiptCreated ();
+ Date getReceiptEntryCreated ();
/**
* Setter for when this receipt has been created in database
* <p>
* @param receiptUpdated Receipt updated timestamp
*/
- void setReceiptUpdated (final Date receiptUpdated);
+ void setReceiptEntryUpdated (final Date receiptUpdated);
/**
* Getter for when this receipt has been updated in database
* <p>
* @return Receipt updated timestamp
*/
- Date getReceiptUpdated ();
+ Date getReceiptEntryUpdated ();
/**
* Setter for when this receipt has been updated in database
* <p>
* @param receiptCreated Receipt creation timestamp
*/
- void setReceiptCreated (final Date receiptCreated);
+ void setReceiptEntryCreated (final Date receiptCreated);
/**
* Getter for when this receipt has been issued (as written on it)
*/
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
- @Column (name = "receipt_created", nullable = false)
- private Date receiptCreated;
+ @Column (name = "receipt_entrt_created", nullable = false)
+ private Date receiptEntryCreated;
+
+ /**
+ * When this receipt entry has been updated
+ */
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "receipt_entry_updated")
+ private Date receiptEntryUpdated;
/**
* Primary key
@Column (name = "receipt_transaction_number")
private Long receiptTransactionNumber;
- /**
- * When this receipt entry has been updated
- */
- @Temporal (TemporalType.TIMESTAMP)
- @Column (name = "receipt_updated")
- private Date receiptUpdated;
-
/**
* Which user this receipt belongs to
*/
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getReceiptCreated () {
- return this.receiptCreated;
+ public Date getReceiptEntryCreated () {
+ return this.receiptEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setReceiptEntryCreated (final Date receiptEntryCreated) {
+ this.receiptEntryCreated = receiptEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getReceiptEntryUpdated () {
+ return this.receiptEntryUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setReceiptCreated (final Date receiptCreated) {
- this.receiptCreated = receiptCreated;
+ public void setReceiptEntryUpdated (final Date receiptEntryUpdated) {
+ this.receiptEntryUpdated = receiptEntryUpdated;
}
@Override
this.receiptTransactionNumber = receiptTransactionNumber;
}
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Date getReceiptUpdated () {
- return this.receiptUpdated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setReceiptUpdated (final Date receiptUpdated) {
- this.receiptUpdated = receiptUpdated;
- }
-
@Override
public User getReceiptUser () {
return this.receiptUser;
targetReceipt.setReceiptBarCodeNumber(sourceReceipt.getReceiptBarCodeNumber());
targetReceipt.setReceiptBonusCard(sourceReceipt.getReceiptBonusCard());
targetReceipt.setReceiptBranchOffice(sourceReceipt.getReceiptBranchOffice());
- targetReceipt.setReceiptCreated(sourceReceipt.getReceiptCreated());
+ targetReceipt.setReceiptEntryCreated(sourceReceipt.getReceiptEntryCreated());
+ targetReceipt.setReceiptEntryUpdated(sourceReceipt.getReceiptEntryUpdated());
targetReceipt.setReceiptId(sourceReceipt.getReceiptId());
targetReceipt.setReceiptIssued(sourceReceipt.getReceiptIssued());
targetReceipt.setReceiptNumber(sourceReceipt.getReceiptNumber());
targetReceipt.setReceiptSellerEmployee(sourceReceipt.getReceiptSellerEmployee());
targetReceipt.setReceiptSequenceNumber(sourceReceipt.getReceiptSequenceNumber());
targetReceipt.setReceiptTransactionNumber(sourceReceipt.getReceiptTransactionNumber());
- targetReceipt.setReceiptUpdated(sourceReceipt.getReceiptUpdated());
targetReceipt.setReceiptUser(sourceReceipt.getReceiptUser());
}