]> git.mxchange.org Git - jshop-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:59:36 +0000 (23:59 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:59:36 +0000 (23:59 +0200)
- 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 <roland@mxchange.org>
src/org/mxchange/jshopcore/model/order/Orderable.java
src/org/mxchange/jshopcore/model/order/ShopOrder.java

index e19be6fdcbd90c80980d4957eaf5b6fd2d8e44e9..0146bd145dd02238f4c9c8e2da03f23dcd186bdf 100644 (file)
@@ -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 {
         * <p>
         * @return Created timestamp
         */
-       Calendar getOrderCreated ();
+       Date getOrderCreated ();
 
        /**
         * Setter for created timestamp
         * <p>
         * @param created Created timestamp
         */
-       void setOrderCreated (final Calendar created);
+       void setOrderCreated (final Date created);
 
        /**
         * Getter for customer instance
index 36a369283a1c54c9726933bd83e9f0d6f066dfa4..15129c8dd80dd20b581fff0a6c7fb64b3f7a02af 100644 (file)
@@ -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;
        }