package org.mxchange.jcontacts.model.contact;
import java.io.Serializable;
-import java.util.Calendar;
import java.util.Date;
import org.mxchange.jcontacts.model.contact.title.PersonalTitle;
import org.mxchange.jcountry.model.data.Country;
* <p>
* @return "created" timestamp
*/
- Calendar getContactCreated ();
+ Date getContactCreated ();
/**
* Setter for "created" timestamp
* <p>
* @param created "created" timestamp
*/
- void setContactCreated (final Calendar created);
+ void setContactCreated (final Date created);
/**
* Email address
* <p>
* @return "updated" timestamp
*/
- Calendar getContactUpdated ();
+ Date getContactUpdated ();
/**
* Getter for "updated" timestamp
* <p>
* @param updated "updated" timestamp
*/
- void setContactUpdated (final Calendar updated);
+ void setContactUpdated (final Date updated);
/**
* ZIP code
*/
package org.mxchange.jcontacts.model.contact;
-import java.util.Calendar;
import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "contact_created", nullable = false)
- private Calendar contactCreated;
+ private Date contactCreated;
/**
* Email address
*/
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "contact_updated")
- private Calendar contactUpdated;
+ private Date contactUpdated;
/**
* ZIP code
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getContactCreated () {
+ public Date getContactCreated () {
return this.contactCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setContactCreated (final Calendar contactCreated) {
+ public void setContactCreated (final Date contactCreated) {
this.contactCreated = contactCreated;
}
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getContactUpdated () {
+ public Date getContactUpdated () {
return this.contactUpdated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setContactUpdated (final Calendar contactUpdated) {
+ public void setContactUpdated (final Date contactUpdated) {
this.contactUpdated = contactUpdated;
}