]> git.mxchange.org Git - jcontacts-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:49:57 +0000 (23:49 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:49:57 +0000 (23:49 +0200)
- need to change java.util.Calendar (bye bye) to java.util.Date in favour of
  PrimeFaces' p:calendar [!]

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jcontacts/model/contact/Contact.java
src/org/mxchange/jcontacts/model/contact/UserContact.java

index 4eb2f5ae7e3ec914a8ff5ad6c52bebe45592dd31..2d8eea340b528106b0438be54f1b1aac0d19f15f 100644 (file)
@@ -17,7 +17,6 @@
 package org.mxchange.jcontacts.model.contact;
 
 import java.io.Serializable;
-import java.util.Calendar;
 import java.util.Date;
 import org.mxchange.jcontacts.model.contact.title.PersonalTitle;
 import org.mxchange.jcountry.model.data.Country;
@@ -121,14 +120,14 @@ public interface Contact extends Serializable {
         * <p>
         * @return "created" timestamp
         */
-       Calendar getContactCreated ();
+       Date getContactCreated ();
 
        /**
         * Setter for "created" timestamp
         * <p>
         * @param created "created" timestamp
         */
-       void setContactCreated (final Calendar created);
+       void setContactCreated (final Date created);
 
        /**
         * Email address
@@ -283,14 +282,14 @@ public interface Contact extends Serializable {
         * <p>
         * @return "updated" timestamp
         */
-       Calendar getContactUpdated ();
+       Date getContactUpdated ();
 
        /**
         * Getter for "updated" timestamp
         * <p>
         * @param updated "updated" timestamp
         */
-       void setContactUpdated (final Calendar updated);
+       void setContactUpdated (final Date updated);
 
        /**
         * ZIP code
index 7554f46477a1dbc013992bb0756d3e490205904d..fabba223fd43d8d5fb989130a44a4b92f512d002 100644 (file)
@@ -16,7 +16,6 @@
  */
 package org.mxchange.jcontacts.model.contact;
 
-import java.util.Calendar;
 import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
@@ -116,7 +115,7 @@ public class UserContact implements Contact {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "contact_created", nullable = false)
-       private Calendar contactCreated;
+       private Date contactCreated;
 
        /**
         * Email address
@@ -211,7 +210,7 @@ public class UserContact implements Contact {
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "contact_updated")
-       private Calendar contactUpdated;
+       private Date contactUpdated;
 
        /**
         * ZIP code
@@ -332,13 +331,13 @@ public class UserContact implements Contact {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getContactCreated () {
+       public Date getContactCreated () {
                return this.contactCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setContactCreated (final Calendar contactCreated) {
+       public void setContactCreated (final Date contactCreated) {
                this.contactCreated = contactCreated;
        }
 
@@ -470,13 +469,13 @@ public class UserContact implements Contact {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getContactUpdated () {
+       public Date getContactUpdated () {
                return this.contactUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setContactUpdated (final Calendar contactUpdated) {
+       public void setContactUpdated (final Date contactUpdated) {
                this.contactUpdated = contactUpdated;
        }