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;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "share_created", nullable = false, updatable = false)
- private Calendar shareCreated;
+ private Date shareCreated;
/**
* Id number
@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;
}
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;
* <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);