From 4724261ba8cd106404a1c9ad47a4c9ceba36606b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 22 Sep 2017 23:44:50 +0200 Subject: [PATCH] Continued: - need to change java.util.Calendar (bye bye) to java.util.Date to make PrimeFaces' p:calendar [!] happy ... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../model/addressbook/shared/AddressbookShare.java | 8 ++++---- .../model/addressbook/shared/ShareableAddressbook.java | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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); -- 2.39.5