]> git.mxchange.org Git - jcountry-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:51:43 +0000 (23:51 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:51:43 +0000 (23:51 +0200)
- 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 <roland@mxchange.org>
src/org/mxchange/jcountry/model/data/Country.java
src/org/mxchange/jcountry/model/data/CountryData.java

index ce47c79292553119d2aed91bdac08968712693c0..688d0c724a5cb621a4dfe285f5a6aec3d496d015 100644 (file)
@@ -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 {
         * <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);
index 668f158e9ae0fac85e38295015c8ae63e53129fb..ba10c082d7ad6ef3e490092c3814ca17be43cd85 100644 (file)
@@ -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;
        }