package org.mxchange.jshopcore.model.customer;
import java.io.Serializable;
+import java.util.Calendar;
import org.mxchange.jcore.model.contact.Contact;
/**
*
* @return "created" timestamp
*/
- public String getCustomerCreated ();
+ public Calendar getCustomerCreated ();
/**
* Setter for "created" timestamp
*
* @param customerCreated "created" timestamp
*/
- public void setCustomerCreated (final String customerCreated);
+ public void setCustomerCreated (final Calendar customerCreated);
/**
* Getter for "locked" timestamp
*
* @return "locked" timestamp
*/
- public String getCustomerLocked ();
+ public Calendar getCustomerLocked ();
/**
* Getter for "locked" timestamp
*
* @param customerLocked "locked" timestamp
*/
- public void setCustomerLocked (final String customerLocked);
+ public void setCustomerLocked (final Calendar customerLocked);
/**
* Setter for customer number
*/
package org.mxchange.jshopcore.model.customer;
+import java.util.Calendar;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
@Basic(optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "customer_created", nullable = false)
- private String customerCreated;
+ private Calendar customerCreated;
/**
* "locked" timestamp
*/
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "customer_locked")
- private String customerLocked;
+ private Calendar customerLocked;
/**
* Customer number, this is different to the database entry customerId.
}
@Override
- public String getCustomerCreated () {
+ public Calendar getCustomerCreated () {
return this.customerCreated;
}
@Override
- public void setCustomerCreated (final String customerCreated) {
+ public void setCustomerCreated (final Calendar customerCreated) {
this.customerCreated = customerCreated;
}
@Override
- public String getCustomerLocked () {
+ public Calendar getCustomerLocked () {
return this.customerLocked;
}
@Override
- public void setCustomerLocked (final String customerLocked) {
+ public void setCustomerLocked (final Calendar customerLocked) {
this.customerLocked = customerLocked;
}
package org.mxchange.jshopcore.model.order;
import java.io.Serializable;
+import java.util.Calendar;
import java.util.List;
import org.mxchange.jshopcore.model.basket.AddableBasketItem;
import org.mxchange.jshopcore.model.customer.Customer;
*
* @return Created timestamp
*/
- public String getCreated ();
+ public Calendar getCreated ();
/**
* Setter for created timestamp
*
* @param created Created timestamp
*/
- public void setCreated (final String created);
+ public void setCreated (final Calendar created);
/**
* Getter for list of ordered basket items
*/
package org.mxchange.jshopcore.model.order;
+import java.util.Calendar;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (nullable = false)
- private String created;
+ private Calendar created;
/**
* Item list, don't save this
}
@Override
- public String getCreated () {
+ public Calendar getCreated () {
return this.created;
}
@Override
- public void setCreated (final String created) {
+ public void setCreated (final Calendar created) {
this.created = created;
}