/*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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;
}