From: Roland Häder Date: Fri, 22 Sep 2017 21:59:36 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b91b87066cecba603e8dd2a9e6969d6db06e8e2;p=jshop-core.git Continued: - need to change java.util.Calendar (bye bye) to java.util.Date in favour of PrimeFaces' p:calendar [!] tag Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/order/Orderable.java b/src/org/mxchange/jshopcore/model/order/Orderable.java index e19be6f..0146bd1 100644 --- a/src/org/mxchange/jshopcore/model/order/Orderable.java +++ b/src/org/mxchange/jshopcore/model/order/Orderable.java @@ -17,7 +17,7 @@ package org.mxchange.jshopcore.model.order; import java.io.Serializable; -import java.util.Calendar; +import java.util.Date; import java.util.List; import org.mxchange.jcustomercore.model.customer.Customer; import org.mxchange.jshopcore.model.basket.AddableBasketItem; @@ -48,14 +48,14 @@ public interface Orderable extends Serializable { *

* @return Created timestamp */ - Calendar getOrderCreated (); + Date getOrderCreated (); /** * Setter for created timestamp *

* @param created Created timestamp */ - void setOrderCreated (final Calendar created); + void setOrderCreated (final Date created); /** * Getter for customer instance diff --git a/src/org/mxchange/jshopcore/model/order/ShopOrder.java b/src/org/mxchange/jshopcore/model/order/ShopOrder.java index 36a3692..15129c8 100644 --- a/src/org/mxchange/jshopcore/model/order/ShopOrder.java +++ b/src/org/mxchange/jshopcore/model/order/ShopOrder.java @@ -16,7 +16,7 @@ */ package org.mxchange.jshopcore.model.order; -import java.util.Calendar; +import java.util.Date; import java.util.List; import java.util.Objects; import javax.persistence.Basic; @@ -71,7 +71,7 @@ public class ShopOrder implements Orderable { @Basic (optional = false) @Temporal (TemporalType.TIMESTAMP) @Column (name = "order_created", nullable = false) - private Calendar orderCreated; + private Date orderCreated; /** * Order orderId @@ -143,12 +143,12 @@ public class ShopOrder implements Orderable { } @Override - public Calendar getOrderCreated () { + public Date getOrderCreated () { return this.orderCreated; } @Override - public void setOrderCreated (final Calendar orderCreated) { + public void setOrderCreated (final Date orderCreated) { this.orderCreated = orderCreated; }