* <p>
* @return Bonus card's creation timestamp
*/
- Date getBonusCardCreated ();
+ Date getBonusCardEntryCreated ();
/**
* Setter for bonus card's creation timestamp
* <p>
* @param bonusCardCreated Bonus card's creation timestamp
*/
- void setBonusCardCreated (final Date bonusCardCreated);
+ void setBonusCardEntryCreated (final Date bonusCardCreated);
+
+ /**
+ * Getter for bonus card's updated timestamp
+ * <p>
+ * @return Bonus card's updated timestamp
+ */
+ Date getBonusCardEntryUpdated ();
+
+ /**
+ * Setter for bonus card's updated timestamp
+ * <p>
+ * @param bonusCardUpdated Bonus card's updated timestamp
+ */
+ void setBonusCardEntryUpdated (final Date bonusCardUpdated);
/**
* Getter for bonus card's customer data
/**
* Getter for bonus card's primary key
* <p>
- * @return Bonus card's primary key
+ * @return Bonus card's primary key
*/
Long getBonusCardId ();
/**
* Setter for bonus card's primary key
* <p>
- * @param bonusCardId Bonus card's primary key
+ * @param bonusCardId Bonus card's primary key
*/
void setBonusCardId (final Long bonusCardId);
/**
* Getter for bonus card's issuing company
* <p>
- * @return Bonus card's issuing company
+ * @return Bonus card's issuing company
*/
BasicData getBonusCardIssuer ();
/**
* Setter for bonus card's issuing company
* <p>
- * @param bonusCardIssuer Bonus card's issuing company
+ * @param bonusCardIssuer Bonus card's issuing company
*/
void setBonusCardIssuer (final BasicData bonusCardIssuer);
/**
* Getter for bonus card's number (other than customer/bar code)
* <p>
- * @return Bonus card's number
+ * @return Bonus card's number
*/
String getBonusCardNumber ();
/**
* Setter for bonus card's number (other than customer/bar code)
* <p>
- * @param bonusCardNumber Bonus card's number
+ * @param bonusCardNumber Bonus card's number
*/
void setBonusCardNumber (final String bonusCardNumber);
/**
* Getter for bonus card's partnering/branding company
* <p>
- * @return Bonus card's partnering/branding company
+ * @return Bonus card's partnering/branding company
*/
BasicData getBonusCardPartner ();
/**
* Setter for bonus card's partnering/branding company
* <p>
- * @param bonusCardPartner Bonus card's partnering/branding company
+ * @param bonusCardPartner Bonus card's partnering/branding company
*/
void setBonusCardPartner (final BasicData bonusCardPartner);
/**
* Bar code on bonus card
*/
- @Column (name = "bonus_card_bar_code")
+ @Column (name = "bonus_card_bar_code", unique = true)
private String bonusCardBarCode;
/**
* When this entry has been created
*/
@Basic (optional = false)
- @Column (name = "bonus_card_created", nullable = false)
+ @Column (name = "bonus_card_entry_created", updatable = false, nullable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Date bonusCardCreated;
+ private Date bonusCardEntryCreated;
+
+ /**
+ * When this entry has been updated
+ */
+ @Column (name = "bonus_card_entry_updated", insertable = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date bonusCardEntryUpdated;
/**
* Bonus card customer id
return false;
} else if (!Objects.equals(this.getBonusCardCustomer(), other.getBonusCardCustomer())) {
return false;
- } else if (!Objects.equals(this.getBonusCardId(), other.getBonusCardId())) {
- return false;
} else if (!Objects.equals(this.getBonusCardIssuer(), other.getBonusCardIssuer())) {
return false;
} else if (!Objects.equals(this.getBonusCardNumber(), other.getBonusCardNumber())) {
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getBonusCardCreated () {
- return this.bonusCardCreated;
+ public Date getBonusCardEntryCreated () {
+ return this.bonusCardEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setBonusCardCreated (final Date bonusCardCreated) {
- this.bonusCardCreated = bonusCardCreated;
+ public void setBonusCardEntryCreated (final Date bonusCardEntryCreated) {
+ this.bonusCardEntryCreated = bonusCardEntryCreated;
}
@Override
this.bonusCardCustomer = bonusCardCustomer;
}
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getBonusCardEntryUpdated () {
+ return this.bonusCardEntryUpdated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setBonusCardEntryUpdated (final Date bonusCardEntryUpdated) {
+ this.bonusCardEntryUpdated = bonusCardEntryUpdated;
+ }
+
@Override
public Long getBonusCardId () {
return this.bonusCardId;
hash = 13 * hash + Objects.hashCode(this.getBonusCardBarCode());
hash = 13 * hash + Objects.hashCode(this.getBonusCardContact());
hash = 13 * hash + Objects.hashCode(this.getBonusCardCustomer());
- hash = 13 * hash + Objects.hashCode(this.getBonusCardId());
hash = 13 * hash + Objects.hashCode(this.getBonusCardIssuer());
hash = 13 * hash + Objects.hashCode(this.getBonusCardNumber());
hash = 13 * hash + Objects.hashCode(this.getBonusCardPartner());