*/
package org.mxchange.jcore.model.contact;
+import java.util.Calendar;
import java.util.Date;
import java.util.Objects;
import javax.annotation.PostConstruct;
@Basic(optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column(nullable = false)
- private String created;
+ private Calendar created;
/**
* Email address
* When the contact has been updated
*/
@Temporal (TemporalType.TIMESTAMP)
- private String updated;
+ private Calendar updated;
/**
* ZIP code
}
@Override
- public String getCreated () {
+ public Calendar getCreated () {
return this.created;
}
@Override
- public void setCreated (final String created) {
+ public void setCreated (final Calendar created) {
this.created = created;
}
}
@Override
- public String getUpdated () {
+ public Calendar getUpdated () {
return this.updated;
}
@Override
- public void setUpdated (final String updated) {
+ public void setUpdated (final Calendar updated) {
this.updated = updated;
}
package org.mxchange.jcore.model.contact;
import java.io.Serializable;
+import java.util.Calendar;
import java.util.Date;
import org.mxchange.jcore.model.contact.gender.Gender;
*
* @return "created" timestamp
*/
- public String getCreated ();
+ public Calendar getCreated ();
/**
* Setter for "created" timestamp
*
* @param created "created" timestamp
*/
- public void setCreated (final String created);
+ public void setCreated (final Calendar created);
/**
* Getter for "updated" timestamp
*
* @return "updated" timestamp
*/
- public String getUpdated ();
+ public Calendar getUpdated ();
/**
* Getter for "updated" timestamp
*
* @param updated "updated" timestamp
*/
- public void setUpdated (final String updated);
+ public void setUpdated (final Calendar updated);
}