From: Roland Häder Date: Fri, 22 Sep 2017 21:44:50 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4724261ba8cd106404a1c9ad47a4c9ceba36606b;p=jaddressbook-share-core.git Continued: - need to change java.util.Calendar (bye bye) to java.util.Date to make PrimeFaces' p:calendar [!] happy ... Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java index cb9ebd0..adbdb65 100644 --- a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java +++ b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/AddressbookShare.java @@ -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; } diff --git a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java index 8cfa160..4a89dda 100644 --- a/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java +++ b/src/org/mxchange/jaddressbookshare/model/addressbook/shared/ShareableAddressbook.java @@ -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 { *

* @return Share creation timestamp */ - Calendar getShareCreated (); + Date getShareCreated (); /** * Setter for share creation timestamp *

* @param shareCreated Share creation timestamp */ - void setShareCreated (final Calendar shareCreated); + void setShareCreated (final Date shareCreated); @Override boolean equals (final Object object);