]> git.mxchange.org Git - jaddressbook-share-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:44:50 +0000 (23:44 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:44:50 +0000 (23:44 +0200)
- need to change java.util.Calendar (bye bye) to java.util.Date to make
  PrimeFaces' p:calendar [!] happy ...

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java
src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java

index cb9ebd012b05ef414fc8de1b71090e13461ea6b9..adbdb658c5678b35b6c463a437d2066f3bedf800 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jaddressbookshare.model.addressbook.shared;
 
 import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -80,7 +80,7 @@ public class AddressbookShare implements ShareableAddressbook {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "share_created", nullable = false, updatable = false)
-       private Calendar shareCreated;
+       private Date shareCreated;
 
        /**
         * Id number
@@ -194,13 +194,13 @@ public class AddressbookShare implements ShareableAddressbook {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getShareCreated () {
+       public Date getShareCreated () {
                return this.shareCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setShareCreated (final Calendar shareCreated) {
+       public void setShareCreated (final Date shareCreated) {
                this.shareCreated = shareCreated;
        }
 
index 8cfa160ad1413399571fc9734a7ef04ddfc9f397..4a89dda98dbbba66b3d9186434c50866e4713937 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jaddressbookshare.model.addressbook.shared;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jaddressbook.model.addressbook.Addressbook;
 import org.mxchange.jusercore.model.user.User;
 
@@ -89,14 +89,14 @@ public interface ShareableAddressbook extends Serializable {
         * <p>
         * @return Share creation timestamp
         */
-       Calendar getShareCreated ();
+       Date getShareCreated ();
 
        /**
         * Setter for share creation timestamp
         * <p>
         * @param shareCreated Share creation timestamp
         */
-       void setShareCreated (final Calendar shareCreated);
+       void setShareCreated (final Date shareCreated);
 
        @Override
        boolean equals (final Object object);