From: Roland Häder Date: Fri, 22 Sep 2017 21:51:43 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b398343972335189d94d8275d56dbd6d0369defc;p=jcountry-core.git Continued: - need to change java.util.Calendar (bye bye) to java.util.Date in favour of PrimeFace's p:calendar [!] tag Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jcountry/model/data/Country.java b/src/org/mxchange/jcountry/model/data/Country.java index ce47c79..688d0c7 100644 --- a/src/org/mxchange/jcountry/model/data/Country.java +++ b/src/org/mxchange/jcountry/model/data/Country.java @@ -17,7 +17,7 @@ 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 @@ -137,14 +137,14 @@ public interface Country extends Serializable { *

* @return Country entry created timestamp */ - Calendar getCountryEntryCreated (); + Date getCountryEntryCreated (); /** * Setter for country entry created timestamp *

* @param countryEntryCreated Country entry created timestamp */ - void setCountryEntryCreated (final Calendar countryEntryCreated); + void setCountryEntryCreated (final Date countryEntryCreated); @Override boolean equals (final Object object); diff --git a/src/org/mxchange/jcountry/model/data/CountryData.java b/src/org/mxchange/jcountry/model/data/CountryData.java index 668f158..ba10c08 100644 --- a/src/org/mxchange/jcountry/model/data/CountryData.java +++ b/src/org/mxchange/jcountry/model/data/CountryData.java @@ -16,7 +16,7 @@ */ 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; @@ -75,7 +75,7 @@ public class CountryData implements Country { @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 @@ -180,13 +180,13 @@ public class CountryData implements Country { @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; }