]> git.mxchange.org Git - jcustomer-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 13 Oct 2017 21:35:11 +0000 (23:35 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 13 Oct 2017 21:35:11 +0000 (23:35 +0200)
- switched from Calendar to Date as p:calendar does want it

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcustomercore/model/customer/ContactCustomer.java
src/org/mxchange/jcustomercore/model/customer/Customer.java

index 4b02c44bffff6c7abd0fb572563e77bb7ed880e7..3e27213f21a36780bd15ecea29093e3968d5bcf7 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcustomercore.model.customer;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -38,7 +38,6 @@ import javax.persistence.TemporalType;
 import javax.persistence.Transient;
 import org.mxchange.jcontacts.model.contact.Contact;
 import org.mxchange.jcontacts.model.contact.UserContact;
-import org.mxchange.jcustomercore.model.customer.Customer;
 import org.mxchange.jcustomercore.model.customer.status.CustomerAccountStatus;
 
 /**
@@ -87,7 +86,7 @@ public class ContactCustomer implements Customer {
        @Basic (optional = false)
        @Column (name = "customer_created", nullable = false, updatable = false)
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar customerCreated;
+       private Date customerCreated;
 
        /**
         * Id number for this entry
@@ -102,7 +101,7 @@ public class ContactCustomer implements Customer {
         */
        @Column (name = "customer_last_locked")
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar customerLastLocked;
+       private Date customerLastLocked;
 
        /**
         * Last locked reason
@@ -123,7 +122,7 @@ public class ContactCustomer implements Customer {
         */
        @Column (name = "customer_updated")
        @Temporal (TemporalType.TIMESTAMP)
-       private Calendar customerUpdated;
+       private Date customerUpdated;
 
        /**
         * Default constructor
@@ -227,13 +226,13 @@ public class ContactCustomer implements Customer {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getCustomerCreated () {
+       public Date getCustomerCreated () {
                return this.customerCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCustomerCreated (final Calendar customerCreated) {
+       public void setCustomerCreated (final Date customerCreated) {
                this.customerCreated = customerCreated;
        }
 
@@ -249,13 +248,13 @@ public class ContactCustomer implements Customer {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getCustomerLastLocked () {
+       public Date getCustomerLastLocked () {
                return this.customerLastLocked;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCustomerLastLocked (final Calendar customerLastLocked) {
+       public void setCustomerLastLocked (final Date customerLastLocked) {
                this.customerLastLocked = customerLastLocked;
        }
 
@@ -291,13 +290,13 @@ public class ContactCustomer implements Customer {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getCustomerUpdated () {
+       public Date getCustomerUpdated () {
                return this.customerUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCustomerUpdated (final Calendar customerUpdated) {
+       public void setCustomerUpdated (final Date customerUpdated) {
                this.customerUpdated = customerUpdated;
        }
 
index ec80ccafdc7d397b2eab85197aa6d5e9e3ec6a61..583d53829f26bf5fc73d8615d25550c9a74524c1 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcustomercore.model.customer;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcontacts.model.contact.Contact;
 import org.mxchange.jcustomercore.model.customer.status.CustomerAccountStatus;
 
@@ -68,28 +68,28 @@ public interface Customer extends Serializable {
         * <p>
         * @return "created" timestamp
         */
-       Calendar getCustomerCreated ();
+       Date getCustomerCreated ();
 
        /**
         * Setter for "created" timestamp
         * <p>
         * @param customerCreated "created" timestamp
         */
-       void setCustomerCreated (final Calendar customerCreated);
+       void setCustomerCreated (final Date customerCreated);
 
        /**
         * Getter for "updated" timestamp
         * <p>
         * @return "updated" timestamp
         */
-       Calendar getCustomerUpdated ();
+       Date getCustomerUpdated ();
 
        /**
         * Setter for "updated" timestamp
         * <p>
         * @param customerUpdated "updated" timestamp
         */
-       void setCustomerUpdated (final Calendar customerUpdated);
+       void setCustomerUpdated (final Date customerUpdated);
 
        /**
         * Getter for customer id number
@@ -110,14 +110,14 @@ public interface Customer extends Serializable {
         * <p>
         * @return "locked" timestamp
         */
-       Calendar getCustomerLastLocked ();
+       Date getCustomerLastLocked ();
 
        /**
         * Getter for "locked" timestamp
         * <p>
         * @param customerLocked "locked" timestamp
         */
-       void setCustomerLastLocked (final Calendar customerLocked);
+       void setCustomerLastLocked (final Date customerLocked);
 
        /**
         * Getter for reason of last locked