From 9b91b87066cecba603e8dd2a9e6969d6db06e8e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Sep 2017 23:59:36 +0200 Subject: [PATCH] Continued: - need to change java.util.Calendar (bye bye) to java.util.Date in favour of PrimeFaces' p:calendar [!] tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- src/org/mxchange/jshopcore/model/order/Orderable.java | 6 +++--- src/org/mxchange/jshopcore/model/order/ShopOrder.java | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) 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; } -- 2.39.5