]> git.mxchange.org Git - jcontacts-business-core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:50:34 +0000 (23:50 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 22 Sep 2017 21:50:34 +0000 (23:50 +0200)
- need to change java.util.Calendar (bye bye) to java.util.Date in favour of
  PrimeFace's p:calendar [!]

Signed-off-by: Roland Häder <roland@mxchange.org>
16 files changed:
src/org/mxchange/jcontactsbusiness/model/basicdata/BusinessBasicData.java
src/org/mxchange/jcontactsbusiness/model/basicdata/CompanyBasicData.java
src/org/mxchange/jcontactsbusiness/model/branchoffice/BranchOffice.java
src/org/mxchange/jcontactsbusiness/model/branchoffice/CompanyBranchOffice.java
src/org/mxchange/jcontactsbusiness/model/department/CompanyDepartment.java
src/org/mxchange/jcontactsbusiness/model/department/Department.java
src/org/mxchange/jcontactsbusiness/model/employee/CompanyEmployee.java
src/org/mxchange/jcontactsbusiness/model/employee/Employee.java
src/org/mxchange/jcontactsbusiness/model/headquarters/CompanyHeadquartersData.java
src/org/mxchange/jcontactsbusiness/model/headquarters/HeadquartersData.java
src/org/mxchange/jcontactsbusiness/model/jobposition/EmployeePosition.java
src/org/mxchange/jcontactsbusiness/model/jobposition/JobPosition.java
src/org/mxchange/jcontactsbusiness/model/logo/BusinessLogo.java
src/org/mxchange/jcontactsbusiness/model/logo/CompanyLogo.java
src/org/mxchange/jcontactsbusiness/model/opening_times/BusinessOpeningTimes.java
src/org/mxchange/jcontactsbusiness/model/opening_times/OpeningTimes.java

index dafe24b22bba58b146cc4a6ccf21eb2ab5f80606..e41f88309e00be9d2b8d6a3de5e95d26c1d9e621 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.basicdata;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import java.util.List;
 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
 import org.mxchange.jcontactsbusiness.model.employee.Employee;
@@ -123,14 +123,14 @@ public interface BusinessBasicData extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getCompanyCreated ();
+       Date getCompanyCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param contactCreated Timestamp when this entry has been created
         */
-       void setCompanyCreated (final Calendar contactCreated);
+       void setCompanyCreated (final Date contactCreated);
 
        /**
         * Getter for comments
index 1e7bc6449bccf0fac5ee9a0377919d8f5696af2f..b8ff97adc7b756fbdbe3586da272f97ef810b89f 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.basicdata;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.List;
 import java.util.Objects;
 import javax.persistence.Basic;
@@ -105,7 +105,7 @@ public class CompanyBasicData implements BusinessBasicData {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "company_entry_created", nullable = false, updatable = false)
-       private Calendar companyCreated;
+       private Date companyCreated;
 
        /**
         * Company's main email address (example: info@company.com)
@@ -268,13 +268,13 @@ public class CompanyBasicData implements BusinessBasicData {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getCompanyCreated () {
+       public Date getCompanyCreated () {
                return this.companyCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setCompanyCreated (final Calendar companyCreated) {
+       public void setCompanyCreated (final Date companyCreated) {
                this.companyCreated = companyCreated;
        }
 
index cc132aa5bcbc2a2c29bb3106383e285a52920221..4da8fd7a47b497aa940e348167a6eedbef893647 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.branchoffice;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
 import org.mxchange.jcontactsbusiness.model.employee.Employee;
 import org.mxchange.jcountry.model.data.Country;
@@ -247,14 +247,14 @@ public interface BranchOffice extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getBranchCreated ();
+       Date getBranchCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param branchCreated Timestamp when this entry has been created
         */
-       void setBranchCreated (final Calendar branchCreated);
+       void setBranchCreated (final Date branchCreated);
 
        @Override
        boolean equals (final Object object);
index cfe69097d123988c90e849fe2ba1c229c0e469ad..d1b8dfc0318e47c4faf7d502b50da0fd4f95c8e8 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.branchoffice;
 
 import java.text.MessageFormat;
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -103,7 +103,7 @@ public class CompanyBranchOffice implements BranchOffice {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "branch_entry_created", nullable = false, updatable = false)
-       private Calendar branchCreated;
+       private Date branchCreated;
 
        /**
         * Branch office's main email address (example: branch-name@company.com)
@@ -329,13 +329,13 @@ public class CompanyBranchOffice implements BranchOffice {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getBranchCreated () {
+       public Date getBranchCreated () {
                return this.branchCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setBranchCreated (final Calendar branchCreated) {
+       public void setBranchCreated (final Date branchCreated) {
                this.branchCreated = branchCreated;
        }
 
index c5fe6e8b8d0669bd6eec95263a42a8869941dffe..25429f49bdc7d78e07f55f692eac20af2e4d2cc3 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.department;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -32,16 +32,16 @@ import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 import javax.persistence.Transient;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
 import org.mxchange.jcontactsbusiness.model.basicdata.CompanyBasicData;
 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
 import org.mxchange.jcontactsbusiness.model.branchoffice.CompanyBranchOffice;
 import org.mxchange.jcontactsbusiness.model.employee.CompanyEmployee;
 import org.mxchange.jcontactsbusiness.model.employee.Employee;
 import org.mxchange.jcontactsbusiness.model.headquarters.CompanyHeadquartersData;
+import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
 import org.mxchange.jusercore.model.user.LoginUser;
 import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
-import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
 
 /**
  * A POJO for company departments
@@ -86,7 +86,7 @@ public class CompanyDepartment implements Department {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "department_entry_created", nullable = false, updatable = false)
-       private Calendar departmentCreated;
+       private Date departmentCreated;
 
        /**
         * Id number
@@ -170,13 +170,13 @@ public class CompanyDepartment implements Department {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getDepartmentCreated () {
+       public Date getDepartmentCreated () {
                return this.departmentCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setDepartmentCreated (final Calendar departmentCreated) {
+       public void setDepartmentCreated (final Date departmentCreated) {
                this.departmentCreated = departmentCreated;
        }
 
index 9ca6f9bd91c365d57c2d44a6e7e69471089aa9a9..f0550fb83934017eabf0fbfe91374cd00e2ee6d4 100644 (file)
 package org.mxchange.jcontactsbusiness.model.department;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
+import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
 import org.mxchange.jcontactsbusiness.model.employee.Employee;
-import org.mxchange.jusercore.model.user.User;
-import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
 import org.mxchange.jcontactsbusiness.model.headquarters.HeadquartersData;
+import org.mxchange.jusercore.model.user.User;
 
 /**
  * A POJI for company departments
@@ -134,14 +134,14 @@ public interface Department extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getDepartmentCreated ();
+       Date getDepartmentCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param departmentCreated Timestamp when this entry has been created
         */
-       void setDepartmentCreated (final Calendar departmentCreated);
+       void setDepartmentCreated (final Date departmentCreated);
 
        @Override
        boolean equals (final Object object);
index 04eba999be6925b5efa8e75b5dd4fb9d7aa8ec75..cda90b1c791f0ada93c69ce014cc6b9dd213956b 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.employee;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -92,7 +92,7 @@ public class CompanyEmployee implements Employee {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "employee_entry_created", nullable = false, updatable = false)
-       private Calendar employeeCreated;
+       private Date employeeCreated;
 
        /**
         * Department the employee works at
@@ -207,13 +207,13 @@ public class CompanyEmployee implements Employee {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getEmployeeCreated () {
+       public Date getEmployeeCreated () {
                return this.employeeCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setEmployeeCreated (final Calendar employeeCreated) {
+       public void setEmployeeCreated (final Date employeeCreated) {
                this.employeeCreated = employeeCreated;
        }
 
index 87c7a05df0e8444ec15f8e3dde10d745f2ab18ef..965573cb066b794ae51c1d9888d90f6bdf5c8ad0 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.employee;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcontacts.model.contact.Contact;
 import org.mxchange.jcontactsbusiness.model.basicdata.BusinessBasicData;
 import org.mxchange.jcontactsbusiness.model.branchoffice.BranchOffice;
@@ -207,14 +207,14 @@ public interface Employee extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getEmployeeCreated ();
+       Date getEmployeeCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param employeeCreated Timestamp when this entry has been created
         */
-       void setEmployeeCreated (final Calendar employeeCreated);
+       void setEmployeeCreated (final Date employeeCreated);
 
        @Override
        boolean equals (final Object object);
index bd44445f288257d224f85d481f18af0997352bb9..1bd660a4a11893c5c9841fa3a15cf96e10282134 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.headquarters;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -76,7 +76,7 @@ public class CompanyHeadquartersData implements HeadquartersData {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "headquarters_entry_created", nullable = false, updatable = false)
-       private Calendar headquartersCreated;
+       private Date headquartersCreated;
 
        /**
         * Headquarters' fax number
@@ -193,13 +193,13 @@ public class CompanyHeadquartersData implements HeadquartersData {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getHeadquartersCreated () {
+       public Date getHeadquartersCreated () {
                return this.headquartersCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setHeadquartersCreated (final Calendar headquartersCreated) {
+       public void setHeadquartersCreated (final Date headquartersCreated) {
                this.headquartersCreated = headquartersCreated;
        }
 
index 03a9b7f2adba00ae8eeee8e19bce5006fb315280..e87b0d451dc232a7c22a265426e04b4792f3dbef 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.headquarters;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcountry.model.data.Country;
 import org.mxchange.jphone.model.phonenumbers.fax.DialableFaxNumber;
 import org.mxchange.jphone.model.phonenumbers.landline.DialableLandLineNumber;
@@ -189,14 +189,14 @@ public interface HeadquartersData extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getHeadquartersCreated ();
+       Date getHeadquartersCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param headquartersCreated Timestamp when this entry has been created
         */
-       void setHeadquartersCreated (final Calendar headquartersCreated);
+       void setHeadquartersCreated (final Date headquartersCreated);
 
        @Override
        boolean equals (final Object object);
index 76733c387a713877af5f27227996ee4761364ca1..a930f18bd3892738968836e068d7f2a743e977d2 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.jobposition;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.Column;
@@ -53,7 +53,7 @@ public class EmployeePosition implements JobPosition {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "job_position_created", nullable = false, updatable = false)
-       private Calendar jobPositionCreated;
+       private Date jobPositionCreated;
 
        /**
         * Id number
@@ -75,7 +75,7 @@ public class EmployeePosition implements JobPosition {
         */
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "job_position_updated", insertable = false)
-       private Calendar jobPositionUpdated;
+       private Date jobPositionUpdated;
 
        @Override
        public boolean equals (final Object object) {
@@ -100,13 +100,13 @@ public class EmployeePosition implements JobPosition {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getJobPositionCreated () {
+       public Date getJobPositionCreated () {
                return this.jobPositionCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setJobPositionCreated (final Calendar jobPositionCreated) {
+       public void setJobPositionCreated (final Date jobPositionCreated) {
                this.jobPositionCreated = jobPositionCreated;
        }
 
@@ -132,13 +132,13 @@ public class EmployeePosition implements JobPosition {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getJobPositionUpdated () {
+       public Date getJobPositionUpdated () {
                return this.jobPositionUpdated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setJobPositionUpdated (final Calendar jobPositionUpdated) {
+       public void setJobPositionUpdated (final Date jobPositionUpdated) {
                this.jobPositionUpdated = jobPositionUpdated;
        }
 
index 3048c8f09e0e5aacd2c7bfa6cd6638b4baa9ae95..20a3d0e3cf747b2000abcee3f23a4a0388c36672 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.jobposition;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 
 /**
  * A POJI for job positions
@@ -59,28 +59,28 @@ public interface JobPosition extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getJobPositionCreated ();
+       Date getJobPositionCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param jobPositionCreated Timestamp when this entry has been created
         */
-       void setJobPositionCreated (final Calendar jobPositionCreated);
+       void setJobPositionCreated (final Date jobPositionCreated);
 
        /**
         * Getter for timestamp when this entry has been updated
         * <p>
         * @return Timestamp when this entry has been updated
         */
-       Calendar getJobPositionUpdated ();
+       Date getJobPositionUpdated ();
 
        /**
         * Setter for timestamp when this entry has been updated
         * <p>
         * @param jobPositionUpdated Timestamp when this entry has been updated
         */
-       void setJobPositionUpdated (final Calendar jobPositionUpdated);
+       void setJobPositionUpdated (final Date jobPositionUpdated);
 
        @Override
        boolean equals (final Object object);
index f899901328bcac23ca55cac319ce1686e10dcc78..043e7f21548829caae142db9c4381c875e5536fb 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.logo;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -74,14 +74,14 @@ public interface BusinessLogo extends Serializable {
         * <p>
         * @return Timestamp when this entry has been created
         */
-       Calendar getLogoCreated ();
+       Date getLogoCreated ();
 
        /**
         * Setter for timestamp when this entry has been created
         * <p>
         * @param logoCreated Timestamp when this entry has been created
         */
-       void setLogoCreated (final Calendar logoCreated);
+       void setLogoCreated (final Date logoCreated);
 
        @Override
        boolean equals (final Object object);
index 05494351216c4a70075c1fa8f3f113e8f05b9bcb..f4067d4c9e27b1df814c4f209167d4182f975fce 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.logo;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.CascadeType;
@@ -56,7 +56,7 @@ public class CompanyLogo implements BusinessLogo {
        @Basic (optional = false)
        @Temporal (TemporalType.TIMESTAMP)
        @Column (name = "logo_entry_created", nullable = false, updatable = false)
-       private Calendar logoCreated;
+       private Date logoCreated;
 
        /**
         * Local file name of the logo (relative to /resources/logos/)
@@ -103,13 +103,13 @@ public class CompanyLogo implements BusinessLogo {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getLogoCreated () {
+       public Date getLogoCreated () {
                return this.logoCreated;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setLogoCreated (final Calendar logoCreated) {
+       public void setLogoCreated (final Date logoCreated) {
                this.logoCreated = logoCreated;
        }
 
index dbb950d0ac7f639c606f9e06c2bbe0af6a54b7f0..09eba678efcc5b396c026a43d8bcaa8a5e8e1068 100644 (file)
@@ -16,7 +16,7 @@
  */
 package org.mxchange.jcontactsbusiness.model.opening_times;
 
-import java.util.Calendar;
+import java.util.Date;
 import java.util.Objects;
 import javax.persistence.Basic;
 import javax.persistence.Column;
@@ -61,7 +61,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
        @Basic (optional = false)
        @Column (name = "opening_times_end_time", nullable = false)
        @Temporal (TemporalType.TIME)
-       private Calendar endTime;
+       private Date endTime;
 
        /**
         * Id number
@@ -85,7 +85,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
        @Basic (optional = false)
        @Column (name = "opening_times_start_time", nullable = false)
        @Temporal (TemporalType.TIME)
-       private Calendar startTime;
+       private Date startTime;
 
        /**
         * Default constructor
@@ -102,7 +102,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
         * @param startDay  Start day
         * @param startTime Start time
         */
-       public BusinessOpeningTimes (final DayOfTheWeek endDay, final Calendar endTime, final Long id, final DayOfTheWeek startDay, final Calendar startTime) {
+       public BusinessOpeningTimes (final DayOfTheWeek endDay, final Date endTime, final Long id, final DayOfTheWeek startDay, final Date startTime) {
                // Call other constructor
                this(endDay, endTime, startDay, startTime);
 
@@ -118,7 +118,7 @@ public class BusinessOpeningTimes implements OpeningTimes {
         * @param startDay  Start day
         * @param startTime Start time
         */
-       public BusinessOpeningTimes (final DayOfTheWeek endDay, final Calendar endTime, final DayOfTheWeek startDay, final Calendar startTime) {
+       public BusinessOpeningTimes (final DayOfTheWeek endDay, final Date endTime, final DayOfTheWeek startDay, final Date startTime) {
                // Set all fields
                this.endDay = endDay;
                this.endTime = endTime;
@@ -165,13 +165,13 @@ public class BusinessOpeningTimes implements OpeningTimes {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getEndTime () {
+       public Date getEndTime () {
                return this.endTime;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setEndTime (final Calendar endTime) {
+       public void setEndTime (final Date endTime) {
                this.endTime = endTime;
        }
 
@@ -197,13 +197,13 @@ public class BusinessOpeningTimes implements OpeningTimes {
 
        @Override
        @SuppressWarnings ("ReturnOfDateField")
-       public Calendar getStartTime () {
+       public Date getStartTime () {
                return this.startTime;
        }
 
        @Override
        @SuppressWarnings ("AssignmentToDateFieldFromParameter")
-       public void setStartTime (final Calendar startTime) {
+       public void setStartTime (final Date startTime) {
                this.startTime = startTime;
        }
 
index f5111e841a4554687824694c37c373d58e8e3a1f..f62b63bce11ec58437d9a0a891b13c07ef9b6ffd 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jcontactsbusiness.model.opening_times;
 
 import java.io.Serializable;
-import java.util.Calendar;
+import java.util.Date;
 import org.mxchange.jcontactsbusiness.model.opening_times.dayofweek.DayOfTheWeek;
 
 /**
@@ -74,28 +74,28 @@ public interface OpeningTimes extends Serializable {
         * <p>
         * @return Starting time
         */
-       Calendar getStartTime ();
+       Date getStartTime ();
 
        /**
         * Setter for starting time
         * <p>
         * @param startTime Starting time
         */
-       void setStartTime (final Calendar startTime);
+       void setStartTime (final Date startTime);
 
        /**
         * Getter for ending time
         * <p>
         * @return Ending time
         */
-       Calendar getEndTime ();
+       Date getEndTime ();
 
        /**
         * Setter for ending time
         * <p>
         * @param endTime Ending time
         */
-       void setEndTime (final Calendar endTime);
+       void setEndTime (final Date endTime);
 
        @Override
        boolean equals (final Object obj);