From: Roland Haeder Date: Fri, 16 Oct 2015 08:46:00 +0000 (+0200) Subject: added share creation timestamp X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=184fc39971265399d97d8722e82a1300aec911da;p=jbonuscard-lib.git added share creation timestamp Signed-off-by:Roland Häder --- 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 (); }