package org.mxchange.jcountry.model.data;
import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
/**
* A POJI for country data such as dial prefixes
* <p>
* @return Country entry created timestamp
*/
- Calendar getCountryEntryCreated ();
+ Date getCountryEntryCreated ();
/**
* Setter for country entry created timestamp
* <p>
* @param countryEntryCreated Country entry created timestamp
*/
- void setCountryEntryCreated (final Calendar countryEntryCreated);
+ void setCountryEntryCreated (final Date countryEntryCreated);
@Override
boolean equals (final Object object);
*/
package org.mxchange.jcountry.model.data;
-import java.util.Calendar;
+import java.util.Date;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
@Basic (optional = false)
@Temporal (TemporalType.TIMESTAMP)
@Column (name = "country_entry_created", nullable = false, updatable = false)
- private Calendar countryEntryCreated;
+ private Date countryEntryCreated;
/**
* Dial prefix to be dialed before the area/city number is dialed. In
@Override
@SuppressWarnings ("ReturnOfDateField")
- public Calendar getCountryEntryCreated () {
+ public Date getCountryEntryCreated () {
return this.countryEntryCreated;
}
@Override
@SuppressWarnings ("AssignmentToDateFieldFromParameter")
- public void setCountryEntryCreated (final Calendar countryEntryCreated) {
+ public void setCountryEntryCreated (final Date countryEntryCreated) {
this.countryEntryCreated = countryEntryCreated;
}