package org.mxchange.jcountry.data;
import java.io.Serializable;
+import java.util.Calendar;
/**
* A POJI for country data such as dial prefixes
*/
void setCountryIsLocalPrefixRequired (final Boolean countryIsLocalPrefixRequired);
+ /**
+ * Getter for country entry created timestamp
+ * <p>
+ * @return Country entry created timestamp
+ */
+ Calendar getCountryEntryCreated ();
+
+ /**
+ * Setter for country entry created timestamp
+ * <p>
+ * @param countryEntryCreated Country entry created timestamp
+ */
+ void setCountryEntryCreated (final Calendar countryEntryCreated);
+
@Override
- boolean equals (final Object object);
+ boolean equals (final Object object);
@Override
- int hashCode ();
+ int hashCode ();
}
*/
package org.mxchange.jcountry.data;
+import java.util.Calendar;
import java.util.Objects;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
/**
* A POJO for country data
@Column (name = "country_is_local_prefix_required", nullable = false)
private Boolean countryIsLocalPrefixRequired;
+ /**
+ * TImestamp when this entry has been created
+ */
+ @Basic (optional = false)
+ @Temporal (TemporalType.TIMESTAMP)
+ @Column (name = "country_entry_created", nullable = false, updatable = false)
+ private Calendar countryEntryCreated;
+
@Override
public boolean equals (final Object object) {
if (object == null) {
return Objects.equals(this.getCountryCode(), other.getCountryCode());
}
+ @Override
+ public Calendar getCountryEntryCreated () {
+ return this.countryEntryCreated;
+ }
+
+ @Override
+ public void setCountryEntryCreated (final Calendar countryEntryCreated) {
+ this.countryEntryCreated = countryEntryCreated;
+ }
+
@Override
public Short getCountryPhoneCode () {
return this.countryPhoneCode;