From 184fc39971265399d97d8722e82a1300aec911da Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 16 Oct 2015 10:46:00 +0200 Subject: [PATCH] =?utf8?q?added=20share=20creation=20timestamp=20Signed-of?= =?utf8?q?f-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../addressbook/shared/AddressbookShare.java | 22 +++++++++++++++++++ .../shared/ShareableAddressbook.java | 19 ++++++++++++++-- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/src/org/mxchange/addressbook/model/addressbook/shared/AddressbookShare.java b/src/org/mxchange/addressbook/model/addressbook/shared/AddressbookShare.java index 5dc3aab..c7bef74 100644 --- a/src/org/mxchange/addressbook/model/addressbook/shared/AddressbookShare.java +++ b/src/org/mxchange/addressbook/model/addressbook/shared/AddressbookShare.java @@ -17,7 +17,9 @@ package org.mxchange.addressbook.model.addressbook.shared; import java.text.MessageFormat; +import java.util.Calendar; import java.util.Objects; +import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; @@ -28,6 +30,8 @@ import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToOne; import javax.persistence.Table; +import javax.persistence.Temporal; +import javax.persistence.TemporalType; import org.mxchange.addressbook.model.addressbook.Addressbook; import org.mxchange.addressbook.model.addressbook.UserAddressbook; import org.mxchange.jusercore.model.user.LoginUser; @@ -88,6 +92,14 @@ public class AddressbookShare implements ShareableAddressbook, Comparable + * @return Share creation timestamp + */ + Calendar getShareCreated (); + + /** + * Setter for share creation timestamp + *

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