* When this customer has been created
*/
@Basic (optional = false)
- @Column (name = "customer_created", nullable = false, updatable = false)
+ @Column (name = "customer_entry_created", updatable = false, nullable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Date customerCreated;
+ private Date customerEntryCreated;
+
+ /**
+ * When this customer has been updated
+ */
+ @Column (name = "customer_entry_updated")
+ @Temporal (TemporalType.TIMESTAMP)
+ private Date customerEntryUpdated;
/**
* Id number for this entry
@Column (name = "customer_number", nullable = false, updatable = false, unique = true)
private String customerNumber;
- /**
- * When this customer has been updated
- */
- @Column (name = "customer_updated")
- @Temporal (TemporalType.TIMESTAMP)
- private Date customerUpdated;
-
/**
* Default constructor
*/
final Customer other = (Customer) object;
- if (!Objects.equals(this.getCustomerNumber(), other.getCustomerNumber())) {
+ if (!Objects.equals(this.getCustomerAccountStatus(), other.getCustomerAccountStatus())) {
+ return false;
+ } else if (!Objects.equals(this.getCustomerConfirmKey(), other.getCustomerConfirmKey())) {
return false;
} else if (!Objects.equals(this.getCustomerContact(), other.getCustomerContact())) {
return false;
} else if (!Objects.equals(this.getCustomerId(), other.getCustomerId())) {
return false;
+ } else if (!Objects.equals(this.getCustomerLastLocked(), other.getCustomerLastLocked())) {
+ return false;
+ } else if (!Objects.equals(this.getCustomerLastLockedReason(), other.getCustomerLastLockedReason())) {
+ return false;
+ } else if (!Objects.equals(this.getCustomerNumber(), other.getCustomerNumber())) {
+ return false;
+ } else if (!Objects.equals(this.getCustomerPasswordHash(), other.getCustomerPasswordHash())) {
+ return false;
}
return true;
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Date getCustomerCreated () {
- return this.customerCreated;
+ public Date getCustomerEntryCreated () {
+ return this.customerEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCustomerCreated (final Date customerCreated) {
- this.customerCreated = customerCreated;
+ public void setCustomerEntryCreated (final Date customerEntryCreated) {
+ this.customerEntryCreated = customerEntryCreated;
+ }
+
+ @Override
+ @SuppressWarnings ("ReturnOfDateField")
+ public Date getCustomerEntryUpdated () {
+ return this.customerEntryUpdated;
+ }
+
+ @Override
+ @SuppressWarnings ("AssignmentToDateFieldFromParameter")
+ public void setCustomerEntryUpdated (final Date customerEntryUpdated) {
+ this.customerEntryUpdated = customerEntryUpdated;
}
@Override
throw new UnsupportedOperationException("Unfinished"); //NOI18N
}
- @Override
- @SuppressWarnings ("ReturnOfDateField")
- public Date getCustomerUpdated () {
- return this.customerUpdated;
- }
-
- @Override
- @SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCustomerUpdated (final Date customerUpdated) {
- this.customerUpdated = customerUpdated;
- }
-
@Override
public int hashCode () {
int hash = 7;
+ hash = 53 * hash + Objects.hashCode(this.getCustomerAccountStatus());
+ hash = 53 * hash + Objects.hashCode(this.getCustomerConfirmKey());
hash = 53 * hash + Objects.hashCode(this.getCustomerContact());
hash = 53 * hash + Objects.hashCode(this.getCustomerId());
+ hash = 53 * hash + Objects.hashCode(this.getCustomerLastLocked());
+ hash = 53 * hash + Objects.hashCode(this.getCustomerLastLockedReason());
hash = 53 * hash + Objects.hashCode(this.getCustomerNumber());
+ hash = 53 * hash + Objects.hashCode(this.getCustomerPasswordHash());
return hash;
}
* <p>
* @return "created" timestamp
*/
- Date getCustomerCreated ();
+ Date getCustomerEntryCreated ();
/**
* Setter for "created" timestamp
* <p>
- * @param customerCreated "created" timestamp
+ * @param customerEntryCreated "created" timestamp
*/
- void setCustomerCreated (final Date customerCreated);
+ void setCustomerEntryCreated (final Date customerEntryCreated);
/**
* Getter for "updated" timestamp
* <p>
* @return "updated" timestamp
*/
- Date getCustomerUpdated ();
+ Date getCustomerEntryUpdated ();
/**
* Setter for "updated" timestamp
* <p>
- * @param customerUpdated "updated" timestamp
+ * @param customerEntryUpdated "updated" timestamp
*/
- void setCustomerUpdated (final Date customerUpdated);
+ void setCustomerEntryUpdated (final Date customerEntryUpdated);
/**
* Getter for customer id number