*/
package org.mxchange.jcustomercore.model.customer;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Transient;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcontacts.model.contact.UserContact;
-import org.mxchange.jcustomercore.model.customer.Customer;
import org.mxchange.jcustomercore.model.customer.status.CustomerAccountStatus;
/**
@Basic (optional = false)
@Column (name = "customer_created", nullable = false, updatable = false)
@Temporal (TemporalType.TIMESTAMP)
- private Calendar customerCreated;
+ private Date customerCreated;
/**
* Id number for this entry
*/
@Column (name = "customer_last_locked")
@Temporal (TemporalType.TIMESTAMP)
- private Calendar customerLastLocked;
+ private Date customerLastLocked;
/**
* Last locked reason
*/
@Column (name = "customer_updated")
@Temporal (TemporalType.TIMESTAMP)
- private Calendar customerUpdated;
+ private Date customerUpdated;
/**
* Default constructor
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getCustomerCreated () {
+ public Date getCustomerCreated () {
return this.customerCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCustomerCreated (final Calendar customerCreated) {
+ public void setCustomerCreated (final Date customerCreated) {
this.customerCreated = customerCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getCustomerLastLocked () {
+ public Date getCustomerLastLocked () {
return this.customerLastLocked;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCustomerLastLocked (final Calendar customerLastLocked) {
+ public void setCustomerLastLocked (final Date customerLastLocked) {
this.customerLastLocked = customerLastLocked;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getCustomerUpdated () {
+ public Date getCustomerUpdated () {
return this.customerUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCustomerUpdated (final Calendar customerUpdated) {
+ public void setCustomerUpdated (final Date customerUpdated) {
this.customerUpdated = customerUpdated;
}
package org.mxchange.jcustomercore.model.customer;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
import org.mxchange.jcontacts.model.contact.Contact;
import org.mxchange.jcustomercore.model.customer.status.CustomerAccountStatus;
* <p>
* @return "created" timestamp
*/
- Calendar getCustomerCreated ();
+ Date getCustomerCreated ();
/**
* Setter for "created" timestamp
* <p>
* @param customerCreated "created" timestamp
*/
- void setCustomerCreated (final Calendar customerCreated);
+ void setCustomerCreated (final Date customerCreated);
/**
* Getter for "updated" timestamp
* <p>
* @return "updated" timestamp
*/
- Calendar getCustomerUpdated ();
+ Date getCustomerUpdated ();
/**
* Setter for "updated" timestamp
* <p>
* @param customerUpdated "updated" timestamp
*/
- void setCustomerUpdated (final Calendar customerUpdated);
+ void setCustomerUpdated (final Date customerUpdated);
/**
* Getter for customer id number
* <p>
* @return "locked" timestamp
*/
- Calendar getCustomerLastLocked ();
+ Date getCustomerLastLocked ();
/**
* Getter for "locked" timestamp
* <p>
* @param customerLocked "locked" timestamp
*/
- void setCustomerLastLocked (final Calendar customerLocked);
+ void setCustomerLastLocked (final Date customerLocked);
/**
* Getter for reason of last locked