]> git.mxchange.org Git - jcustomer-core.git/commitdiff
also needs to be changed here, too. Good!
authorRoland Haeder <roland@mxchange.org>
Thu, 24 Sep 2015 09:38:42 +0000 (11:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 24 Sep 2015 09:41:43 +0000 (11:41 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/customer/Customer.java
src/org/mxchange/jshopcore/model/customer/ShopCustomer.java
src/org/mxchange/jshopcore/model/order/Orderable.java
src/org/mxchange/jshopcore/model/order/ShopOrder.java

index d2b4f7662d74490f2765f2bcf2fcc60fffb415d4..9cee5f74c5adaa090d472301d47040a721776c1e 100644 (file)
@@ -17,6 +17,7 @@
 package org.mxchange.jshopcore.model.customer;
 
 import java.io.Serializable;
+import java.util.Calendar;
 import org.mxchange.jcore.model.contact.Contact;
 
 /**
@@ -66,28 +67,28 @@ public interface Customer extends Serializable {
         *
         * @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
index 954988a8fb41d1bf368a01f1bc93676336103a10..678cbb88e43382d38984fbbe47883e1c3ced8edd 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jshopcore.model.customer;
 
+import java.util.Calendar;
 import javax.persistence.Basic;
 import javax.persistence.Column;
 import javax.persistence.Entity;
@@ -72,14 +73,14 @@ public class ShopCustomer implements Customer {
        @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.
@@ -134,22 +135,22 @@ public class ShopCustomer implements Customer {
        }
 
        @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;
        }
 
index fbd713633643f77d061f58131bc415462ada4191..47f60edb48db0df6f2a6175643ce1af3022460bb 100644 (file)
@@ -17,6 +17,7 @@
 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;
@@ -75,14 +76,14 @@ public interface Orderable extends Serializable {
         *
         * @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
index d2e8bc66eb45327fccd3d0d137bf14ae5ce8f74e..09c69b8cae2a4e7774e5af4c644a63b0ddf6ca3e 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.jshopcore.model.order;
 
+import java.util.Calendar;
 import java.util.List;
 import javax.persistence.Basic;
 import javax.persistence.Column;
@@ -74,7 +75,7 @@ public class ShopOrder implements Orderable {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (nullable = false)
-       private String created;
+       private Calendar created;
 
        /**
         * Item list, don't save this
@@ -93,12 +94,12 @@ public class ShopOrder implements Orderable {
        }
 
        @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;
        }